Skip to content

Instantly share code, notes, and snippets.

@dcyou
Forked from szilagyiabo/bitbucket-pipelines.yml
Created July 15, 2020 05:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcyou/87c6edd3f49646120b4906caf6ec158a to your computer and use it in GitHub Desktop.
Save dcyou/87c6edd3f49646120b4906caf6ec158a 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