[英]travis-ci could not parse yml file
I want to do AWS Elastic Beanstalk Deployment.我想做 AWS Elastic Beanstalk 部署。 But tvavis say "could not parse" This happens after adding the part of the code that begins with the word "deploy"但是 tvavis 说“无法解析”这发生在添加以“部署”开头的代码部分之后
sudo: required
services:
- docker
before_install:
- docker build -t alex-sbk/docker-react -f Dockerfile.dev .
script:
- docker run -e CI=true alex-sbk/docker-react npm run test
deploy:
provider: elasticbeanstalk
region: "us-east-2"
app: "docker-react"
env: "DockerReact-env"
bucket_name: "elasticbeanstalk-us-east-2-282895571233"
bucket_path: "docker-react"
on:
branch: master
access_key_id: $AWS_ACCESS_KEY
secret_access_key: $AWS_SECRET_KEY
There are apparent issues with indentations .有明显的缩进问题。 You code does not pass YAML format validators.您的代码未通过YAML 格式验证器。 I fixed it a bit, and now it passes我修复了一点,现在它通过了
---
before_install:
- "docker build -t alex-sbk/docker-react -f Dockerfile.dev ."
script:
- "docker run -e CI=true alex-sbk/docker-react npm run test"
-
deploy:
access_key_id: $AWS_ACCESS_KEY
app: docker-react
bucket_name: elasticbeanstalk-us-east-2-282895571233
bucket_path: docker-react
env: DockerReact-env
provider: elasticbeanstalk
region: us-east-2
secret_access_key: $AWS_SECRET_KEY
true:
branch: master
services:
- docker
sudo: required
The format should be OK now, but I can't guarantee that the deployment will successed.现在格式应该没问题,但我不能保证部署会成功。 There could be other issue with actual data provided.提供的实际数据可能存在其他问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.