]> git.ipfire.org Git - thirdparty/ut1-blacklists.git/blob - .gitlab-ci.yml
Automatic blacklist update
[thirdparty/ut1-blacklists.git] / .gitlab-ci.yml
1 ---
2 update-lists:
3 stage: deploy
4 image: ruby:3
5 retry: 2
6 before_script:
7 - git config user.name "GitLab CI Runner"
8 - git config user.email "gitlab@example.com"
9 - git checkout -b $CI_DEFAULT_BRANCH origin/$CI_DEFAULT_BRANCH || true
10 - git pull --rebase origin $CI_DEFAULT_BRANCH
11 script:
12 # install required dependencies
13 - bundle install
14
15 # fetch the last version of the blacklists
16 - scripts/update-lists
17
18 # update table in README file
19 - bundle exec scripts/generate-readme < README.md.erb > README.md
20
21 # push updates to git repository
22 - scripts/sync-git
23 only:
24 - web
25 - schedules