Compare commits
No commits in common. "a8c248239da08c35a0384c3a868d37e35e052fb1" and "806634b0f0adbd4fe680436be0b8134d8487f89d" have entirely different histories.
a8c248239d
...
806634b0f0
2 changed files with 58 additions and 2 deletions
56
.woodpecker/.dashboard.yaml
Normal file
56
.woodpecker/.dashboard.yaml
Normal file
|
@ -0,0 +1,56 @@
|
||||||
|
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:
|
||||||
|
include: ['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 (done automagically via Woodpecker pipeline #${CI_PIPELINE_NUMBER}) [CI SKIP]"
|
||||||
|
ssh_key:
|
||||||
|
from_secret: FORGEJO_SSH_KEY
|
||||||
|
when:
|
||||||
|
- branch: main
|
||||||
|
event: push
|
||||||
|
path:
|
||||||
|
include: ['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:
|
||||||
|
include: ['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:
|
||||||
|
include: ['dashboard/**', '.woodpecker/*']
|
|
@ -240,7 +240,7 @@ spec:
|
||||||
source:
|
source:
|
||||||
repoURL: https://git.ar21.de/yolokube/core-deployments.git
|
repoURL: https://git.ar21.de/yolokube/core-deployments.git
|
||||||
targetRevision: HEAD
|
targetRevision: HEAD
|
||||||
path: dashboard/overlays/prod
|
path: dashboard/prod
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: dashboard
|
namespace: dashboard
|
||||||
|
@ -260,7 +260,7 @@ spec:
|
||||||
source:
|
source:
|
||||||
repoURL: https://git.ar21.de/yolokube/core-deployments.git
|
repoURL: https://git.ar21.de/yolokube/core-deployments.git
|
||||||
targetRevision: HEAD
|
targetRevision: HEAD
|
||||||
path: dashboard/overlays/staging
|
path: dashboard/staging
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: dashboard-staging
|
namespace: dashboard-staging
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue