Created
June 27, 2018 19:49
-
-
Save pdeva/e0f00a81450506498d3da0cfdb59fde3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
pipelines: | |
default: | |
- step: | |
name: deploy to dev | |
script: | |
- export AWS_ACCESS_KEY_ID="$DEV_AWS_ACCESS_KEY_ID" | |
- export AWS_SECRET_ACCESS_KEY="$DEV_AWS_ACCESS_KEY_SECRET" | |
- aws s3 sync --delete _site s3://$DEV_S3_BUCKET | |
branches: | |
master: | |
- step: | |
name: deploy to prod | |
script: | |
- export AWS_ACCESS_KEY_ID="$PROD_AWS_ACCESS_KEY_ID" | |
- export AWS_SECRET_ACCESS_KEY="$PROD_AWS_ACCESS_KEY_SECRET" | |
- aws s3 sync --delete _site s3://$PROD_S3_BUCKET |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment