merge woodpecker config into one file
All checks were successful
ci/woodpecker/push/dashboard Pipeline was successful

This commit is contained in:
Aaron Riedel 2024-08-07 21:21:50 +02:00
parent 921e5b64ea
commit 03fed86671
Signed by: aaron
GPG key ID: 643004654D40D577
2 changed files with 26 additions and 27 deletions

View file

@ -1,27 +0,0 @@
steps:
- name: kustomize build dashboard (staging)
image: git.ar21.de/aaron/kustomize-ci
commands:
- git clone https://git.ar21.de/yolokube/core-deployments.git deployment-repo
- kustomize build -o deployment-repo/dashboard/staging/dashboard.yaml dashboard/overlays/staging
when:
- branch:
exclude: main
event: push
path: ['dashboard/*', '.woodpecker/*']
- name: kustomize push dashboard changes (staging)
image: appleboy/drone-git-push
settings:
branch: main
remote: ssh://git@git.ar21.de:2222/yolokube/core-deployments.git
path: deployment-repo
force: false
commit: true
commit_message: "KUSTOMIZE BUILD STAGING: rebuild dashboard deployment (done automagically via Woodpecker pipeline #${CI_PIPELINE_NUMBER}) [CI SKIP]"
ssh_key:
from_secret: FORGEJO_SSH_KEY
when:
- branch:
exclude: main
event: push
path: ['dashboard/*', '.woodpecker/*']

View file

@ -24,3 +24,29 @@ steps:
- branch: main - branch: main
event: push event: push
path: ['dashboard/*', '.woodpecker/*'] path: ['dashboard/*', '.woodpecker/*']
- name: kustomize build dashboard (staging)
image: git.ar21.de/aaron/kustomize-ci
commands:
- git clone https://git.ar21.de/yolokube/core-deployments.git deployment-repo
- kustomize build -o deployment-repo/dashboard/staging/dashboard.yaml dashboard/overlays/staging
when:
- branch:
exclude: main
event: push
path: ['dashboard/*', '.woodpecker/*']
- name: kustomize push dashboard changes (staging)
image: appleboy/drone-git-push
settings:
branch: main
remote: ssh://git@git.ar21.de:2222/yolokube/core-deployments.git
path: deployment-repo
force: false
commit: true
commit_message: "KUSTOMIZE BUILD STAGING: rebuild dashboard deployment (done automagically via Woodpecker pipeline #${CI_PIPELINE_NUMBER}) [CI SKIP]"
ssh_key:
from_secret: FORGEJO_SSH_KEY
when:
- branch:
exclude: main
event: push
path: ['dashboard/*', '.woodpecker/*']