Skip to content
Snippets Groups Projects
Commit ee67753f authored by Cédric OLIVIER's avatar Cédric OLIVIER
Browse files

Merge branch 'feat/enforce-boolean-vars' into 'master'

Enforce AUTODEPLOY_TO_PROD and PUBLISH_ON_PROD as boolean variables

See merge request to-be-continuous/docker!41
parents c432e7c5 ca4cb984
No related branches found
No related tags found
No related merge requests found
...@@ -689,13 +689,12 @@ docker-publish: ...@@ -689,13 +689,12 @@ docker-publish:
- if: '$CI_COMMIT_REF_NAME !~ $PROD_REF' - if: '$CI_COMMIT_REF_NAME !~ $PROD_REF'
when: never when: never
# exclude if $PUBLISH_ON_PROD disabled # exclude if $PUBLISH_ON_PROD disabled
- if: '$PUBLISH_ON_PROD == "false" || $PUBLISH_ON_PROD == "no" || $PUBLISH_ON_PROD == ""' - if: '$PUBLISH_ON_PROD != "true"'
when: never when: never
# exclude if snapshot is same as release image # exclude if snapshot is same as release image
- if: '$DOCKER_SNAPSHOT_IMAGE == $DOCKER_RELEASE_IMAGE' - if: '$DOCKER_SNAPSHOT_IMAGE == $DOCKER_RELEASE_IMAGE'
when: never when: never
# if $AUTODEPLOY_TO_PROD: auto # if $AUTODEPLOY_TO_PROD: auto
- if: $AUTODEPLOY_TO_PROD - if: '$AUTODEPLOY_TO_PROD == "true"'
# else: manual + blocking # else: manual + blocking
- if: $PUBLISH_ON_PROD # this 'if' is useless but only prevents GitLab warning :( - when: manual
when: manual
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