Commit 628b934a authored by Jose Aponte's avatar Jose Aponte Committed by Marcel Amirault

Update dpl command line

parent ba51f925
...@@ -28,16 +28,16 @@ test: ...@@ -28,16 +28,16 @@ test:
staging: staging:
stage: deploy stage: deploy
script: script:
- gem install dpl - gem install dpl --pre
- dpl --provider=heroku --app=gitlab-ci-ruby-test-staging --api-key=$HEROKU_STAGING_API_KEY - dpl heroku api --app=gitlab-ci-ruby-test-staging --api-key=$HEROKU_STAGING_API_KEY
only: only:
- master - master
production: production:
stage: deploy stage: deploy
script: script:
- gem install dpl - gem install dpl --pre
- dpl --provider=heroku --app=gitlab-ci-ruby-test-prod --api-key=$HEROKU_PRODUCTION_API_KEY - dpl heroku api --app=gitlab-ci-ruby-test-prod --api-key=$HEROKU_PRODUCTION_API_KEY
only: only:
- tags - tags
``` ```
...@@ -50,7 +50,7 @@ This project has three jobs: ...@@ -50,7 +50,7 @@ This project has three jobs:
## Store API keys ## Store API keys
You'll need to create two variables in your project's **Settings > CI/CD > Environment variables**: You'll need to create two variables in your project's **Settings > CI/CD > Environment variables** and do not check **Protect variable** and **Mask variable**:
- `HEROKU_STAGING_API_KEY` - Heroku API key used to deploy staging app. - `HEROKU_STAGING_API_KEY` - Heroku API key used to deploy staging app.
- `HEROKU_PRODUCTION_API_KEY` - Heroku API key used to deploy production app. - `HEROKU_PRODUCTION_API_KEY` - Heroku API key used to deploy production app.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment