chore(ci): move to woodpecker
This commit is contained in:
parent
706e3d0ca8
commit
530610d905
5 changed files with 77 additions and 114 deletions
26
.woodpecker/.deploy.yaml
Normal file
26
.woodpecker/.deploy.yaml
Normal file
|
@ -0,0 +1,26 @@
|
|||
steps:
|
||||
- name: bump tag in deployment-repo
|
||||
image: git.ar21.de/aaron/kustomize-ci
|
||||
commands:
|
||||
- git clone https://git.ar21.de/yolokube/fail2ban-exporter-deployment.git deployment-repo
|
||||
- cd deployment-repo
|
||||
- kustomize edit set image git.ar21.de/yolokube/country-geo-locations=git.ar21.de/yolokube/country-geo-locations:${CI_PIPELINE_NUMBER}
|
||||
when:
|
||||
- branch: main
|
||||
event: push
|
||||
- name: push new tag to deployment-repo
|
||||
image: appleboy/drone-git-push
|
||||
settings:
|
||||
branch: main
|
||||
remote: ssh://git@git.ar21.de:2222/yolokube/fail2ban-exporter-deployment.git
|
||||
path: deployment-repo
|
||||
force: false
|
||||
commit: true
|
||||
commit_message: "yolokube/country-geo-locations: update image tag to ${CI_PIPELINE_NUMBER} (done automagically via Woodpecker pipeline)"
|
||||
ssh_key:
|
||||
from_secret: FORGEJO_SSH_KEY
|
||||
when:
|
||||
- branch: main
|
||||
event: push
|
||||
depends_on:
|
||||
- build
|
Loading…
Add table
Add a link
Reference in a new issue