malware-filter/.gitlab-ci.yml

44 lines
1.9 KiB
YAML
Raw Normal View History

image: alpine:latest
2020-10-08 03:32:47 +00:00
pages:
before_script:
2021-04-07 09:54:48 +00:00
- apk update && apk add git brotli curl
2020-10-08 03:32:47 +00:00
- git clone --depth 5 https://gitlab.com/curben/urlhaus-filter.git urlhaus-filter/
- git clone --depth 5 https://gitlab.com/curben/phishing-filter.git phishing-filter/
- git clone --depth 5 https://gitlab.com/curben/pup-filter.git pup-filter/
2020-10-08 03:32:47 +00:00
2021-04-07 09:54:48 +00:00
- mkdir -p oisd/
2021-04-11 08:56:04 +00:00
- curl -L https://abp.oisd.nl/basic/ -o oisd/oisd_abp_light.txt
- curl -L https://abp.oisd.nl/ -o oisd/oisd_abp.txt
- curl -L https://dbl.oisd.nl/basic/ -o oisd/oisd_dbl_light.txt
- curl -L https://dbl.oisd.nl/ -o oisd/oisd_dbl.txt
- curl -L https://dblw.oisd.nl/basic/ -o oisd/oisd_dblw_light.txt
- curl -L https://dblw.oisd.nl/ -o oisd/oisd_dblw.txt
- curl -L https://hosts.oisd.nl/basic/ -o oisd/oisd_hosts_light.txt
- curl -L https://hosts.oisd.nl/ -o oisd/oisd_hosts.txt
- curl -L https://dnsmasq.oisd.nl/basic/ -o oisd/oisd_dnsmasq_light.txt
- curl -L https://dnsmasq.oisd.nl/ -o oisd/oisd_dnsmasq.txt
- curl -L https://rpz.oisd.nl/basic/ -o oisd/oisd_rpz_light.txt
- curl -L https://rpz.oisd.nl/ -o oisd/oisd_rpz.txt
2021-04-07 09:54:48 +00:00
- mkdir -p tracking-filter/
- git clone --depth 5 https://gitlab.com/curben/tracking-filter.git tracking-filter/
2020-10-08 03:32:47 +00:00
script:
- mkdir -p public/
2020-10-08 04:37:43 +00:00
- cp urlhaus-filter/urlhaus-filter* public/
- cp phishing-filter/dist/phishing-filter* public/
- cp pup-filter/dist/pup-filter* public/
2021-04-07 09:54:48 +00:00
- cp oisd/* public/
- cp tracking-filter/* public/
- 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-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:
- if: '$CI_COMMIT_REF_NAME == "master" && ($CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "web" || $CI_PIPELINE_SOURCE == "schedule")'
2020-10-08 03:32:47 +00:00
when: always