dashboard/.woodpecker/.deploy.yaml

52 lines
1.7 KiB
YAML
Raw Normal View History

2024-08-07 21:36:57 +02:00
steps:
- name: bump tag in deployment-repo (prod)
image: git.ar21.de/aaron/kustomize-ci
commands:
- git clone https://git.ar21.de/yolokube/core-deployments.git deployment-repo
2024-08-07 21:54:05 +02:00
- cd deployment-repo/dashboard/overlays/prod
- kustomize edit set image git.ar21.de/yolokube/dashboard=git.ar21.de/yolokube/dashboard:${CI_PIPELINE_NUMBER}
2024-08-07 21:36:57 +02:00
when:
- branch: master
event: push
- name: bump tag in deployment-repo (staging)
image: git.ar21.de/aaron/kustomize-ci
commands:
- git clone https://git.ar21.de/yolokube/core-deployments.git deployment-repo
2024-08-07 21:54:05 +02:00
- cd deployment-repo/dashboard/overlays/staging
- kustomize edit set image git.ar21.de/yolokube/dashboard=git.ar21.de/yolokube/dashboard:staging-${CI_PIPELINE_NUMBER}
2024-08-07 21:36:57 +02:00
when:
- branch:
exclude: master
event: push
- name: push new tag to deployment-repo (prod)
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: "DASHBOARD: update image tag to ${CI_PIPELINE_NUMBER} (done automagically via Woodpecker pipeline)"
ssh_key:
from_secret: FORGEJO_SSH_KEY
when:
- branch: master
event: push
- name: push new tag to deployment-repo (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: "DASHBOARD STAGING: update image tag to stagint-${CI_PIPELINE_NUMBER} (done automagically via Woodpecker pipeline)"
ssh_key:
from_secret: FORGEJO_SSH_KEY
when:
- branch:
exclude: master
event: push
depends_on:
- build
- test