Skip to content

Instantly share code, notes, and snippets.

@saadismail
Created December 27, 2018 10:16
Show Gist options
  • Save saadismail/6de9a950c753940fd29eef2686ce3ee7 to your computer and use it in GitHub Desktop.
Save saadismail/6de9a950c753940fd29eef2686ce3ee7 to your computer and use it in GitHub Desktop.
image: node:latest
stages:
- production
production:
type: deploy
stage: production
script:
- apt-get update -qy
- apt-get install -y ruby-dev
- gem install dpl
- curl -sL https://deb.nodesource.com/setup_8.x | bash -
- apt-get install -y nodejs
- npm install -g @angular/cli
- cd angular-src
- npm install
- ng build --prod
- dpl --provider=heroku --app=saaady --api-key=$HEROKU_API_KEY
only:
- master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment