Created
February 19, 2019 13:16
-
-
Save szilagyiabo/a09da3281a5581af9de3552c5653989f to your computer and use it in GitHub Desktop.
Example Bitbucket Pipeline for Vue.js application
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
# This is a sample build configuration for JavaScript. | |
# Check our guides at https://confluence.atlassian.com/x/14UWN for more examples. | |
# Only use spaces to indent your .yml configuration. | |
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: node:8.12.0 | |
pipelines: | |
branches: | |
master: | |
- step: | |
name: Generate Static Files | |
caches: | |
- node | |
script: | |
- npm install | |
- npm run build | |
artifacts: | |
- dist/* | |
- dist/**/* | |
- dist/**/** | |
- step: | |
name: Deploy to S3 | |
image: atlassian/pipelines-awscli | |
script: | |
- aws s3 sync --acl public-read --delete ./dist s3://$S3_BUCKET_NAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment