2021-03-31 11:17:40 +00:00
|
|
|
image: alpine:latest
|
2020-10-08 03:32:47 +00:00
|
|
|
|
2022-01-08 09:31:58 +00:00
|
|
|
build_job:
|
2022-01-08 09:35:30 +00:00
|
|
|
stage: build
|
2022-01-08 09:31:58 +00:00
|
|
|
|
2020-10-08 03:32:47 +00:00
|
|
|
before_script:
|
2022-01-08 09:31:58 +00:00
|
|
|
- apk update && apk add brotli curl
|
|
|
|
|
|
|
|
script:
|
|
|
|
- sh src/script.sh
|
|
|
|
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- tmp
|
|
|
|
- public
|
|
|
|
|
|
|
|
pages:
|
2022-01-08 09:35:30 +00:00
|
|
|
stage: deploy
|
2021-05-22 03:14:30 +00:00
|
|
|
|
2020-10-08 03:32:47 +00:00
|
|
|
script:
|
2022-01-08 09:31:58 +00:00
|
|
|
- echo
|
2020-10-08 03:32:47 +00:00
|
|
|
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2022-01-08 09:31:58 +00:00
|
|
|
- public
|
2020-10-08 03:32:47 +00:00
|
|
|
|
|
|
|
rules:
|
2022-01-08 09:31:58 +00:00
|
|
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
2022-01-08 22:33:09 +00:00
|
|
|
|
|
|
|
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
|