From 03fed86671a1b4cd58781a6a5adcb6beeeaf25a5 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Wed, 7 Aug 2024 21:21:50 +0200 Subject: [PATCH] merge woodpecker config into one file --- .woodpecker/.dashboard-staging.yaml | 27 ------------------- .../{.dashboard-prod.yaml => .dashboard.yaml} | 26 ++++++++++++++++++ 2 files changed, 26 insertions(+), 27 deletions(-) delete mode 100644 .woodpecker/.dashboard-staging.yaml rename .woodpecker/{.dashboard-prod.yaml => .dashboard.yaml} (51%) diff --git a/.woodpecker/.dashboard-staging.yaml b/.woodpecker/.dashboard-staging.yaml deleted file mode 100644 index b7192b1..0000000 --- a/.woodpecker/.dashboard-staging.yaml +++ /dev/null @@ -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/*'] diff --git a/.woodpecker/.dashboard-prod.yaml b/.woodpecker/.dashboard.yaml similarity index 51% rename from .woodpecker/.dashboard-prod.yaml rename to .woodpecker/.dashboard.yaml index 256465e..d646432 100644 --- a/.woodpecker/.dashboard-prod.yaml +++ b/.woodpecker/.dashboard.yaml @@ -24,3 +24,29 @@ steps: - branch: main event: push 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/*'] \ No newline at end of file