Skip to content
Snippets Groups Projects
Commit 8ae0aa24 authored by Dean Lovett's avatar Dean Lovett
Browse files

Update Nexus-Auto-DevOps.gitlab-ci.yml

parent 6e2c55b2
Branches master
No related tags found
No related merge requests found
......@@ -20,11 +20,11 @@ staging:
- if: '$STAGING_ENABLED'
production_manual:
variables:
KUBE_NAMESPACE: "$CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG"
rules:
- if: '$PRODUCTION_DISABLED'
when: never
- if: '$CI_KUBERNETES_ACTIVE == null || $CI_KUBERNETES_ACTIVE == ""'
when: never
- if: '$INCREMENTAL_ROLLOUT_ENABLED'
when: never
- if: '$INCREMENTAL_ROLLOUT_MODE'
......@@ -32,28 +32,9 @@ production_manual:
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_COMMIT_MESSAGE =~ /^chore\(release\)/'
when: manual
review:
rules:
- if: '$CI_KUBERNETES_ACTIVE == null || $CI_KUBERNETES_ACTIVE == ""'
when: never
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
when: never
- if: '$REVIEW_DISABLED'
when: never
- if: '$CI_COMMIT_BRANCH'
stop_review:
rules:
- if: '$CI_KUBERNETES_ACTIVE == null || $CI_KUBERNETES_ACTIVE == ""'
when: never
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
when: never
- if: '$REVIEW_DISABLED'
when: never
- if: '$CI_COMMIT_BRANCH'
when: manual
testing:
variables:
KUBE_NAMESPACE: "$CI_PROJECT_NAME-$CI_ENVIRONMENT_SLUG"
extends: .auto-deploy
stage: staging
script:
......@@ -67,8 +48,6 @@ testing:
name: testing
url: http://$CI_PROJECT_PATH_SLUG-testing.$KUBE_INGRESS_BASE_DOMAIN
rules:
- if: '$CI_KUBERNETES_ACTIVE == null || $CI_KUBERNETES_ACTIVE == ""'
when: never
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$CI_COMMIT_TAG'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment