From 036fb70fc4f05055459947fe2d1d336a6eea59b9 Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Sat, 8 Jan 2022 23:35:24 +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 061a29a..39308b0 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