ci: check existence of env variable
This commit is contained in:
parent
41140abfdd
commit
5443e4c918
|
@ -1,4 +1,4 @@
|
|||
image: alpine:latest
|
||||
image: node:lts-alpine
|
||||
|
||||
include:
|
||||
- template: Security/Secret-Detection.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
|
||||
|
|
Loading…
Reference in New Issue