Created
November 7, 2019 16:55
-
-
Save jasonroot/3e009801b5a1b0cbde4048e6f1513242 to your computer and use it in GitHub Desktop.
Bitbucket Pipeline config for static sites
This file contains 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 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