Skip to content

Instantly share code, notes, and snippets.

@jasonroot
Created November 7, 2019 16:55
Show Gist options
  • Save jasonroot/3e009801b5a1b0cbde4048e6f1513242 to your computer and use it in GitHub Desktop.
Save jasonroot/3e009801b5a1b0cbde4048e6f1513242 to your computer and use it in GitHub Desktop.
Bitbucket Pipeline config for static sites
# This is a build configuration for JavaScript.
# -----
image: node:10.15.3
pipelines:
branches:
release/*:
- step:
name: build
caches:
- node
script:
- npm install -g gulp
- npm install
- gulp build-project
artifacts:
- build/**
- step:
name: deploy to staging
deployment: staging
trigger: manual
script:
- pipe: atlassian/rsync-deploy:0.3.2
variables:
USER: ''
SERVER: ''
REMOTE_PATH: ''
LOCAL_PATH: 'build/**'
master:
- step:
name: build
caches:
- node
script:
- npm install -g gulp
- npm install
- gulp build-project
artifacts:
- build/**
- step:
name: deploy to production
deployment: production
trigger: manual
script:
- pipe: atlassian/rsync-deploy:0.3.2
variables:
USER: ''
SERVER: ''
REMOTE_PATH: ''
LOCAL_PATH: 'build/**'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment