I added some AWS keys to my .travis.yml
file so that it would deploy my application over to ElasticBeanstalk, but after I committed the changes to the file and pushed to master, nothing happened.
I thought perhaps I needed to restart build. This added my AWS keys, but no installation of deployment dependencies as I had expected and no deployment to AWS.
Not sure what happened here. Did I not wait long enough for TravisCI to start the new build?
This is my .travis.yml
file:
sudo: required
services:
- docker
before_install:
- docker build -t danale/project-name -f Dockerfile.dev .
script:
- docker run danale/project-name npm run test -- --coverage
deploy:
provider: elasticbeanstalk
region: "us-east-1"
app: "project-name"
env: "ProjectName-env"
bucket_name: "elasticbeanstalk-us-east-1-123456789"
bucket_path: "project-name"
on:
branch: master
access_key_id: $AWS_ACCESS_KEY
secret_access_key:
secure: "$AWS_SECRET_KEY"
I conducted a git add . && git commit -m "added travis deploy script" && git push origin master
No deployment afterwards. I don't see where I missed a step here: https://docs.travis-ci.com/user/deployment/elasticbeanstalk/