Skip to content

Instantly share code, notes, and snippets.

@zinwalin
Forked from szilagyiabo/bitbucket-pipelines.yml
Created January 24, 2022 14:34
Show Gist options
  • Save zinwalin/8dc4eef3576765285c514839a2bbdb40 to your computer and use it in GitHub Desktop.
Save zinwalin/8dc4eef3576765285c514839a2bbdb40 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