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