.woodpecker/.deploy.yaml: adjust CI to push changes to core-deployments
This commit is contained in:
parent
a07c0af85f
commit
aa8aebb77f
1 changed files with 40 additions and 9 deletions
|
@ -1,26 +1,57 @@
|
||||||
|
skip_clone: true
|
||||||
steps:
|
steps:
|
||||||
- name: bump tag in deployment-repo
|
- name: bump tag in deployment-repo
|
||||||
image: git.ar21.de/aaron/kustomize-ci
|
image: git.ar21.de/aaron/kustomize-ci
|
||||||
commands:
|
commands:
|
||||||
- git clone https://git.ar21.de/yolokube/fail2ban-exporter-deployment.git deployment-repo
|
- git clone https://git.ar21.de/yolokube/core-deployments.git deployment-repo
|
||||||
- cd deployment-repo
|
- cd deployment-repo/fail2ban-exporter
|
||||||
- kustomize edit set image git.ar21.de/yolokube/country-geo-locations=git.ar21.de/yolokube/country-geo-locations:${CI_PIPELINE_NUMBER}
|
- kustomize edit set image git.ar21.de/yolokube/country-geo-locations=git.ar21.de/yolokube/country-geo-locations:${CI_PIPELINE_NUMBER}
|
||||||
when:
|
when:
|
||||||
- branch: main
|
- branch: main
|
||||||
event: push
|
event: push
|
||||||
- name: push new tag to deployment-repo
|
- name: push new tag to deployment-repo
|
||||||
image: appleboy/drone-git-push
|
image: appleboy/drone-git-push
|
||||||
settings:
|
settings:
|
||||||
branch: main
|
branch: "${CI_PIPELINE_NUMBER}_country_geo_location"
|
||||||
remote: ssh://git@git.ar21.de:2222/yolokube/fail2ban-exporter-deployment.git
|
remote: ssh://git@git.ar21.de:2222/yolokube/core-deployments.git
|
||||||
path: deployment-repo
|
path: deployment-repo
|
||||||
force: false
|
force: false
|
||||||
commit: true
|
commit: true
|
||||||
commit_message: "yolokube/country-geo-locations: update image tag to ${CI_PIPELINE_NUMBER} (done automagically via Woodpecker pipeline)"
|
commit_message: "COUNTRY GEO LOCATION: update image tag to ${CI_PIPELINE_NUMBER} (done automagically via Woodpecker pipeline)"
|
||||||
ssh_key:
|
ssh_key:
|
||||||
from_secret: FORGEJO_SSH_KEY
|
from_secret: FORGEJO_SSH_KEY
|
||||||
when:
|
when:
|
||||||
- branch: main
|
- branch: main
|
||||||
event: push
|
event: push
|
||||||
|
- name: create pull request
|
||||||
|
image: git.ar21.de/tom/push-message-randomizer:latest
|
||||||
|
pull: true
|
||||||
|
settings:
|
||||||
|
gitea_address: https://git.ar21.de
|
||||||
|
gitea_token:
|
||||||
|
from_secret: FORGEJO_API
|
||||||
|
owner: ${CI_REPO_OWNER}
|
||||||
|
repo: core-deployments
|
||||||
|
branch: "${CI_PIPELINE_NUMBER}_country_geo_location"
|
||||||
|
base_branch: main
|
||||||
|
pr_title: "COUNTRY GEO LOCATION: update image tag to ${CI_PIPELINE_NUMBER}"
|
||||||
|
pr_body: |
|
||||||
|
### ℹ Country Geo Location image update
|
||||||
|
|
||||||
|
{- random-pr-message -}
|
||||||
|
|
||||||
|
### Configuration
|
||||||
|
|
||||||
|
📅 **Schedule**: Branch creation - At any time, Automerge - At any time.
|
||||||
|
|
||||||
|
🚦 **Automerge**: Enabled.
|
||||||
|
skip_on_missing_branch: true
|
||||||
|
close_pr_if_empty: true
|
||||||
|
delete_branch_if_pr_empty: true
|
||||||
|
merge_when_checks_succeed: true
|
||||||
|
delete_branch_after_merge: true
|
||||||
|
when:
|
||||||
|
- branch: main
|
||||||
|
event: push
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
|
|
Loading…
Reference in a new issue