From 5e9a58faef684443e4199f6f06905f05d576b696 Mon Sep 17 00:00:00 2001 From: Guilhem Bonnefille <guilhem.bonnefille@c-s.fr> Date: Thu, 30 Jun 2022 08:58:24 +0000 Subject: [PATCH] fix: enforce AUTODEPLOY_TO_PROD as boolean variable --- templates/gitlab-ci-helm.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/gitlab-ci-helm.yml b/templates/gitlab-ci-helm.yml index 500d7c3..34c151c 100644 --- a/templates/gitlab-ci-helm.yml +++ b/templates/gitlab-ci-helm.yml @@ -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 -- GitLab