image: node:latest before_script: - apt-get update -qy - apt-get install -y ruby-dev - gem install dpl stages: - testing - staging - production testing: type: deploy stage: testing image: ruby:latest script: - dpl --provider=heroku --app=$HEROKU_APP_TESTING --api-key=$HEROKU_API_KEY only: - testing staging: type: deploy stage: staging image: ruby:latest script: - dpl --provider=heroku --app=$HEROKU_APP_STAGING --api-key=$HEROKU_API_KEY only: - staging # production: # type: deploy # stage: production # image: ruby:latest # script: # - dpl --provider=heroku --app=$HEROKU_APP_PRODUCTION --api-key=$HEROKU_API_KEY # only: # - master