2022-12-27 00:42:29 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
2022-12-28 08:46:22 +00:00
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
include:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
2022-12-27 00:42:29 +00:00
|
|
|
steps:
|
|
|
|
- name: test
|
|
|
|
image: alpine:latest
|
|
|
|
commands:
|
|
|
|
- sed -i '1i\include "./config-example.conf";' bird.conf
|
|
|
|
- apk add bird
|
|
|
|
- bird -p -c ./bird.conf
|
2022-12-28 08:46:22 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: updateFilter
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
include:
|
|
|
|
- push
|
|
|
|
- cron
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: update filter
|
|
|
|
image: debian:latest
|
|
|
|
commands:
|
|
|
|
- apt-get update -y && apt-get install bgpq4 -y
|
|
|
|
- echo "define $(bgpq4 -tbl DOWNSTREAM_ASN AS-NET186 -S RIPE)" > util/irr-filter.conf
|
|
|
|
- echo "define $(bgpq4 -6bl DOWNSTREAM_PREFIXES AS-NET186)" >> util/irr-filter.conf
|
|
|
|
- name: push to repo
|
|
|
|
image: appleboy/drone-git-push
|
|
|
|
settings:
|
|
|
|
branch: production
|
|
|
|
remote: git@direct-git.186526.xyz:186526/net186-config.git
|
|
|
|
force: true
|
|
|
|
commit_message: "[CI] Update: update filter"
|
|
|
|
commit: true
|
|
|
|
ssh_key:
|
|
|
|
from_secret: ssh_private_key
|