Skip to content
Snippets Groups Projects
Commit 0e815315 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch 'fix/enforce-bool' into 'master'

fix: enforce AUTODEPLOY_TO_PROD as boolean variable

See merge request to-be-continuous/helm!31
parents cdc7b1a7 5e9a58fa
No related branches found
No related tags found
No related merge requests found
......@@ -722,7 +722,7 @@ helm-publish:
rules:
- if: $HELM_PUBLISH_URL == null || $CI_COMMIT_REF_NAME !~ $PROD_REF
when: never
- if: $AUTODEPLOY_TO_PROD
- if: '$AUTODEPLOY_TO_PROD == "true"'
# else: manual + blocking
- if: $CI_COMMIT_REF_NAME # this 'if' is useless but only prevents GitLab warning :(
when: manual
......@@ -1014,7 +1014,7 @@ helm-production:
- if: '$HELM_PROD_DISABLED == "true"'
when: never
# if $AUTODEPLOY_TO_PROD: auto
- if: $AUTODEPLOY_TO_PROD
- if: '$AUTODEPLOY_TO_PROD == "true"'
# else if PUBLISH_ON_PROD enabled: auto (because the publish job was blocking)
- if: '$PUBLISH_ON_PROD == "true"'
# else: manual, blocking
......
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