Skip to content

Instantly share code, notes, and snippets.

@miladvafaeifard
Created November 23, 2018 16:33
Show Gist options
  • Save miladvafaeifard/33a3bfe0858c7c9c693e69c7cbee69d9 to your computer and use it in GitHub Desktop.
Save miladvafaeifard/33a3bfe0858c7c9c693e69c7cbee69d9 to your computer and use it in GitHub Desktop.
deploy to heroku
image: node:8.9.1
cache:
paths:
- node_modules/
stages:
- deploy
deploy_staging:
stage: deploy
script:
- git remote add heroku https://heroku:[email protected]/test-sc.git
- git push heroku master
- echo "Deployed to staging server"
environment: staging
only:
- backend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment