2020-10-08 03:32:47 +00:00
|
|
|
image: alpine:latest # Use the latest version of Alpine Linux docker image
|
|
|
|
|
|
|
|
pages:
|
|
|
|
before_script:
|
|
|
|
- apk update && apk add git
|
|
|
|
- git clone --depth 5 https://gitlab.com/curben/urlhaus-filter.git urlhaus-filter/
|
|
|
|
|
|
|
|
script:
|
|
|
|
- mkdir -p public/
|
2020-10-08 04:37:43 +00:00
|
|
|
- cp urlhaus-filter/urlhaus-filter* public/
|
2020-10-08 03:52:08 +00:00
|
|
|
- find public -type f -regex '.*\.\(htm\|html\|txt\|text\|conf\|js\|css\)$' -exec gzip -f -k -9 {} \;
|
2020-10-08 03:32:47 +00:00
|
|
|
|
|
|
|
artifacts:
|
|
|
|
paths:
|
2020-10-08 03:39:51 +00:00
|
|
|
- public/
|
2020-10-08 03:32:47 +00:00
|
|
|
|
|
|
|
rules:
|
2020-12-12 21:38:54 +00:00
|
|
|
- if: '$CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web" || $CI_PIPELINE_SOURCE == "pipeline")'
|
2020-10-08 03:32:47 +00:00
|
|
|
when: always
|