chore(ci): add netlify build book

- https://docs.netlify.com/configure-builds/build-hooks/
This commit is contained in:
MDLeom 2022-01-08 22:33:09 +00:00
parent add4913170
commit c4b7612b01
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 12 additions and 0 deletions

View File

@ -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