Created
July 5, 2018 10:19
-
-
Save bettysteger/aed3e79f582177827f86634ff1eeb857 to your computer and use it in GitHub Desktop.
Bitbucket Pipeline config to deploy Angular app to Amazon AWS S3 Bucket
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
image: node:8.7.0 | |
pipelines: | |
default: | |
- step: | |
caches: | |
- node | |
script: | |
- npm install | |
- npm install yarn grunt -g | |
- yarn | |
- grunt build | |
artifacts: | |
- dist/** | |
- step: | |
image: atlassian/pipelines-awscli | |
script: | |
- aws s3 sync --delete dist s3://<bucketname> | |
deployment: staging | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
must be set as Environment variables in the Repository Settings!