From 95fd50f7babd356b2e19bec3f8270ffc8e7ea2ac Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Sat, 8 Jan 2022 23:36:34 +0000 Subject: [PATCH] chore(ci): add cloudflare deploy hook - https://developers.cloudflare.com/pages/platform/deploy-hooks --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index cb54475..d1265f6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,7 +39,8 @@ netlify: - apk update && apk add curl script: - - curl -X POST -d '{}' https://api.netlify.com/build_hooks/$NETLIFY_BUILD_HOOK + - curl -X POST -d "{}" "https://api.netlify.com/build_hooks/$NETLIFY_BUILD_HOOK" + - curl -X POST "https://api.cloudflare.com/client/v4/pages/webhooks/deploy_hooks/$CLOUDFLARE_BUILD_HOOK" rules: # Only trigger through schedule job and "Run pipeline" in the main branch