Skip to content
Snippets Groups Projects
Commit 5b5a8147 authored by Christian Boettcher's avatar Christian Boettcher
Browse files

cleanup rules for cleanup

parent 1b6ed1f0
Branches
Tags
No related merge requests found
Pipeline #128658 skipped
...@@ -102,6 +102,7 @@ full-deploy-production: ...@@ -102,6 +102,7 @@ full-deploy-production:
stage: deploy stage: deploy
environment: Production environment: Production
rules: rules:
- if: ($CI_COMMIT_TAG =~ /stable/ && $MANUAL_FULL_DEPLOY_PRODUCTION == "true")
<<: *ssh_setup <<: *ssh_setup
script: script:
- echo "Starting the full production deployment of airflows." - echo "Starting the full production deployment of airflows."
...@@ -160,8 +161,7 @@ cleanup-successful-full-deployment: ...@@ -160,8 +161,7 @@ cleanup-successful-full-deployment:
stage: cleanup stage: cleanup
when: on_success when: on_success
rules: rules:
- if: $MANUAL_FULL_DEPLOY_PRODUCTION == "true" - if: ($CI_COMMIT_TAG =~ /stable/ && $MANUAL_FULL_DEPLOY_PRODUCTION == "true")
when: tags
script: script:
- echo "This is the cleanup for the full-redeployment of the testing or production servers" - echo "This is the cleanup for the full-redeployment of the testing or production servers"
- echo "if this job is reached, all earlier jobs were successful, and any lingering old instances need to be removed" - echo "if this job is reached, all earlier jobs were successful, and any lingering old instances need to be removed"
...@@ -175,8 +175,7 @@ cleanup-failed-full-deployment: ...@@ -175,8 +175,7 @@ cleanup-failed-full-deployment:
stage: cleanup stage: cleanup
when: on_failure when: on_failure
rules: rules:
- if: $MANUAL_FULL_DEPLOY_PRODUCTION == "true" - if: ($CI_COMMIT_TAG =~ /stable/ && $MANUAL_FULL_DEPLOY_PRODUCTION == "true")
when: tags
<<: *ssh_setup <<: *ssh_setup
script: script:
- echo "This is the cleanup for the full-redeployment of the testing or production servers" - echo "This is the cleanup for the full-redeployment of the testing or production servers"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment