Created
October 28, 2019 04:47
-
-
Save JosepRoo/c6a258f649236e77706d9a45b25f176d to your computer and use it in GitHub Desktop.
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
image: node:10 | |
pipelines: | |
branches: | |
master: | |
- step: | |
name: 'Build app' | |
caches: | |
- node | |
script: | |
- npm install --quiet | |
- npm run build --progress=false | |
artifacts: | |
- dist/** | |
- step: | |
name: 'Create zip' | |
script: | |
- tar czfv application.tgz dist -C server . | |
artifacts: | |
- application.tgz | |
- step: | |
name: 'Deploy to Heroku in production' | |
deployment: production | |
script: | |
- pipe: atlassian/heroku-deploy:0.1.1 | |
variables: | |
HEROKU_API_KEY: $HEROKU_API_KEY | |
HEROKU_APP_NAME: $HEROKU_APP_NAME | |
ZIP_FILE: "application.tgz" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment