diff options
Diffstat (limited to 'lib/gitlab/ci/templates/OpenShift.gitlab-ci.yml')
-rw-r--r-- | lib/gitlab/ci/templates/OpenShift.gitlab-ci.yml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/gitlab/ci/templates/OpenShift.gitlab-ci.yml b/lib/gitlab/ci/templates/OpenShift.gitlab-ci.yml index 65abee1f5eb..91de258eb7c 100644 --- a/lib/gitlab/ci/templates/OpenShift.gitlab-ci.yml +++ b/lib/gitlab/ci/templates/OpenShift.gitlab-ci.yml @@ -49,7 +49,8 @@ review: only: - branches except: - - master + variables: + - $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME stop-review: <<: *deploy @@ -66,7 +67,8 @@ stop-review: only: - branches except: - - master + variables: + - $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME staging: <<: *deploy @@ -78,7 +80,8 @@ staging: name: staging url: http://$CI_PROJECT_NAME-staging.$OPENSHIFT_DOMAIN only: - - master + variables: + - $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME production: <<: *deploy @@ -91,4 +94,5 @@ production: name: production url: http://$CI_PROJECT_NAME.$OPENSHIFT_DOMAIN only: - - master + variables: + - $CI_DEFAULT_BRANCH == $CI_COMMIT_REF_NAME |