malware-filter/.gitlab-ci.yml

20 lines
625 B
YAML

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/
- cp urlhaus-filter/urlhaus-filter* public/
- find public -type f -regex '.*\.\(htm\|html\|txt\|text\|conf\|js\|css\)$' -exec gzip -f -k -9 {} \;
artifacts:
paths:
- public/
rules:
- if: '$CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web" || $CI_PIPELINE_SOURCE == "pipeline")'
when: always