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

fix conditions in CI/CD jobs

parent 32b03ba4
No related branches found
No related tags found
No related merge requests found
Pipeline #128656 failed
...@@ -88,8 +88,7 @@ full-deploy-testing: ...@@ -88,8 +88,7 @@ full-deploy-testing:
light-deploy-testing: light-deploy-testing:
stage: deploy stage: deploy
rules: rules:
- if: $MANUAL_FULL_DEPLOY_TESTING == "" || $MANUAL_FULL_DEPLOY_TESTING == "false" - if: ($CI_COMMIT_BRANCH == "master" && ($MANUAL_FULL_DEPLOY_TESTING == "" || $MANUAL_FULL_DEPLOY_TESTING == "false))"
when: tags
<<: *ssh_setup <<: *ssh_setup
environment: Testing environment: Testing
script: script:
...@@ -102,8 +101,7 @@ full-deploy-production: ...@@ -102,8 +101,7 @@ full-deploy-production:
stage: deploy stage: deploy
environment: Production environment: Production
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 "Starting the full production deployment of airflows." - echo "Starting the full production deployment of airflows."
...@@ -133,7 +131,7 @@ full-deploy-production: ...@@ -133,7 +131,7 @@ full-deploy-production:
light-deploy-production: light-deploy-production:
stage: deploy stage: deploy
rules: rules:
- if: $MANUAL_FULL_DEPLOY_PRODUCTION == "" || $MANUAL_FULL_DEPLOY_PRODUCTION == "false" - if: ($CI_COMMIT_TAG =~ /stable/ && ($MANUAL_FULL_DEPLOY_PRODUCTION == "" || $MANUAL_FULL_DEPLOY_PRODUCTION == "false"))
when: tags when: tags
<<: *ssh_setup <<: *ssh_setup
environment: Production environment: Production
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment