Skip to content

Instantly share code, notes, and snippets.

@bettysteger
Created July 5, 2018 10:19
Show Gist options
  • Save bettysteger/aed3e79f582177827f86634ff1eeb857 to your computer and use it in GitHub Desktop.
Save bettysteger/aed3e79f582177827f86634ff1eeb857 to your computer and use it in GitHub Desktop.
Bitbucket Pipeline config to deploy Angular app to Amazon AWS S3 Bucket
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
@bettysteger
Copy link
Author

AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY must be set as Environment variables in the Repository Settings!

@smakintel
Copy link

thanks helped me a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment