2022-01-08 02:55:16 +00:00
|
|
|
image: alpine:latest
|
2020-07-05 10:46:19 +00:00
|
|
|
|
2020-12-12 21:54:08 +00:00
|
|
|
build_job:
|
2022-01-08 02:55:16 +00:00
|
|
|
stage: build
|
2020-07-05 10:46:19 +00:00
|
|
|
|
|
|
|
before_script:
|
2022-01-08 03:20:44 +00:00
|
|
|
- apk update && apk add brotli curl grep xmlstarlet
|
2020-07-05 10:46:19 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- sh src/script.sh
|
2022-01-08 02:55:16 +00:00
|
|
|
- find public -type f -regex '.*\.\(txt\|conf\|tpl\|rules\)$' -exec gzip -f -k -9 {} \;
|
|
|
|
- find public -type f -regex '.*\.\(txt\|conf\|tpl\|rules\)$' -exec brotli -f -k -9 {} \;
|
2020-07-05 10:46:19 +00:00
|
|
|
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2022-01-08 02:55:16 +00:00
|
|
|
- tmp
|
|
|
|
- public
|
2020-07-05 10:46:19 +00:00
|
|
|
|
2022-01-08 02:55:16 +00:00
|
|
|
pages:
|
2020-12-12 21:54:08 +00:00
|
|
|
stage: deploy
|
2020-07-05 10:46:19 +00:00
|
|
|
|
|
|
|
script:
|
2022-01-08 02:55:16 +00:00
|
|
|
- echo
|
2020-07-05 10:46:19 +00:00
|
|
|
|
2022-01-08 02:55:16 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|
2020-07-05 10:46:19 +00:00
|
|
|
|
|
|
|
rules:
|
2022-01-08 05:45:10 +00:00
|
|
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
|
|
|
2021-06-20 00:21:50 +00:00
|
|
|
|
|
|
|
include:
|
|
|
|
- template: Security/Secret-Detection.gitlab-ci.yml
|