diff options
Diffstat (limited to 'doc/ci/examples/deployment/index.md')
-rw-r--r-- | doc/ci/examples/deployment/index.md | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/ci/examples/deployment/index.md b/doc/ci/examples/deployment/index.md index a156cf1acb0..793e60d517c 100644 --- a/doc/ci/examples/deployment/index.md +++ b/doc/ci/examples/deployment/index.md @@ -69,8 +69,8 @@ staging: - apt-get install -y ruby-dev - gem install dpl - dpl heroku api --app=my-app-staging --api_key=$HEROKU_STAGING_API_KEY - only: - - main + rules: + - if: $CI_COMMIT_BRANCH == "main" environment: staging ``` @@ -93,8 +93,8 @@ staging: script: - gem install dpl - dpl heroku api --app=my-app-staging --api_key=$HEROKU_STAGING_API_KEY - only: - - main + rules: + - if: $CI_COMMIT_BRANCH == "main" environment: staging production: @@ -102,8 +102,8 @@ production: script: - gem install dpl - dpl heroku api --app=my-app-production --api_key=$HEROKU_PRODUCTION_API_KEY - only: - - tags + rules: + - if: $CI_COMMIT_TAG environment: production ``` |