From dc3048d5fdeadc9823c8786fa9866eaa40604993 Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Tue, 25 Jan 2022 10:16:43 +0000 Subject: [PATCH] ci: check existence of env variable --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e0db643..e025b92 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -47,7 +47,7 @@ cloudflare: - curl -X POST "https://api.cloudflare.com/client/v4/pages/webhooks/deploy_hooks/$CLOUDFLARE_BUILD_HOOK" rules: - - if: '$CLOUDFLARE == "true"' + - if: $CLOUDFLARE_BUILD_HOOK netlify: stage: deploy @@ -62,4 +62,4 @@ netlify: - netlify deploy --dir=public --prod rules: - - if: '$NETLIFY == "true"' + - if: $NETLIFY_SITE_ID