Skip to content

Instantly share code, notes, and snippets.

@JosepRoo
Created October 28, 2019 04:47
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 JosepRoo/c6a258f649236e77706d9a45b25f176d to your computer and use it in GitHub Desktop.
Save JosepRoo/c6a258f649236e77706d9a45b25f176d to your computer and use it in GitHub Desktop.
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