core-deployments/.woodpecker/.dashboard-prod.yaml
Aaron Riedel 1988ed7ed0
All checks were successful
ci/woodpecker/push/dashboard-prod Pipeline was successful
ci/woodpecker/push/dashboard-staging Pipeline was successful
add woodpecker pipelines
2024-08-07 19:48:12 +02:00

26 lines
1,021 B
YAML

steps:
- name: kustomize build dashboard (prod + 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/prod/dashboard.yaml dashboard/overlays/prod
- kustomize build -o deployment-repo/dashboard/staging/dashboard.yaml dashboard/overlays/staging
when:
- branch: main
event: push
path: ['dashboard/*', '.woodpecker/*']
- name: kustomize push dashboard changes (prod + 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: rebuild dashboard deployment with kustomize ${DRONE_BUILD_NUMBER} (done automagically via Drone pipeline) [CI SKIP]"
ssh_key:
from_secret: FORGEJO_SSH_KEY
when:
- branch: main
event: push
path: ['dashboard/*', '.woodpecker/*']