Skip to content

Instantly share code, notes, and snippets.

@szilagyiabo
Created February 19, 2019 13:16
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save szilagyiabo/a09da3281a5581af9de3552c5653989f to your computer and use it in GitHub Desktop.
Save szilagyiabo/a09da3281a5581af9de3552c5653989f to your computer and use it in GitHub Desktop.
Example Bitbucket Pipeline for Vue.js application
# 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