From c4b7612b01dd0895461d19c09f66e2a009b00796 Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Sat, 8 Jan 2022 22:33:09 +0000 Subject: [PATCH] chore(ci): add netlify build book - https://docs.netlify.com/configure-builds/build-hooks/ --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5beb741..bcf3f74 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,3 +26,15 @@ pages: rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH + +netlify: + stage: deploy + + before_script: + - apk update && apk add curl + + script: + - curl -X POST -d '{}' https://api.netlify.com/build_hooks/$NETLIFY_BUILD_HOOK + + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH