Below is my .travis.yml
file configuration:
language: generic
services:
- docker
before_install:
- docker build -t heet1996/my-profile -f Dockerfile.dev .
script:
- docker run heet1996/my-profile npm run test -- --coverage
deploy:
provider: elasticbeanstalk
region: "us-east-1"
app: "My-profile"
env: "MyProfile-env"
bucket_name: "elasticbeanstalk-us-east-1-413920612934"
bucket_path: "My-profile"
on:
branch: master
access_key_id: $AWS_ACCESS_KEY
secret_access_key: "$AWS_SECRET_KEY"
Let me know if you need more information, thank you.
SU
Norway
Hey as usual @SolarUltima,
In your script, specifically via key value in your .travis.yml
file, try and do this:
script:
- docker run -e CI=true
Then adding the callback information. AWS needs the access variables to be named differently in the env var
.
So you should change:
access_key_id: $AWS_ACCESS_KEY
secret_access_key: "$AWS_SECRET_KEY"
To the following:
access_key_id: "$AWS_ACCESS_KEY_ID"
secret_access_key: "$AWS_SECRET_ACCESS_KEY"
I’ve seen enough of these cases, this should solve your problem in no time, but if it doesn’t please post back and I’ll be glad to help you more.
-Montana
Travis CI Staff
1 Like
Hey @SolarUltima,
Just wanted to confirm this worked even though you marked this as the solution! I like to make sure these things worked.
-Montana
Travis CI Staff
Great to hear @SolarUltima. Was happy to see this in my notifications!
-Montana
Travis CI Staff