Created
March 30, 2020 21:07
-
-
Save mitcharoo/ecc74e4a518a075f0d1ebd2d4a95ed9a to your computer and use it in GitHub Desktop.
Gitlab deploy to Elastic Beanstalk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
development: | |
type: deploy | |
environment: production | |
script: | |
- mkdir ~/.aws/ | |
- touch ~/.aws/credentials | |
- printf "[eb-cli]\naws_access_key_id = %s\naws_secret_access_key = %s\n" "$AWS_ACCESS_KEY_ID" "$AWS_SECRET_ACCESS_KEY" >> ~/.aws/credentials | |
- touch ~/.aws/config | |
- printf "[profile eb-cli]\nregion=ap-southeast-1\noutput=json" >> ~/.aws/config | |
- eb deploy funwitheb-production | |
only: | |
- master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment