我正在尝试使用travis ci将Node.js docker映像部署到Elastic Beanstalk,但是travis中的测试和构建不断通过并成功部署,但是,我在Elastic Beanstalk控制台上不断收到以下警告和错误
WARN: Environment health has transitioned from Info to Degraded. Incorrect application
version found on all instances. Expected version "Sample Application" (deployment 1).
Application update failed 31 seconds ago and took 15 minutes.
ERROR: During an aborted deployment, some instances may have deployed the new application
version. To ensure all instances are running the same version, re-deploy the appropriate
application version.
我正在使用免费套餐,所以我不确定这是问题还是出了什么问题。下面是hoe mt .travis.yml文件,看起来像
sudo: required
services:
- docker
before_install:
- docker build -t poolafrica/pool_auth -f Dockerfile.dev .
script:
- docker run poolafrica/pool_auth npm run test -- --coverage
deploy:
provider: elasticbeanstalk
edge: true
access_key_id: $AWS_ACCESS_ID
secret_access_key:
secure: $AWS_SECRET_KEY
region: eu-west-2
app: pool_auth
env: PoolAuth-env
bucket_name: elasticbeanstalk-eu-west-2-747115545713
on:
branch: master
skip_cleanup: true