Commit 41da94da authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'kakashy-master-patch-94775' into 'master'

Update dpl command line

See merge request gitlab-org/gitlab!51277
parents 0941a0b4 628b934a
...@@ -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