From c85e733666acf7396caeef29395e56193809229e Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Fri, 4 Oct 2024 19:11:38 +0200 Subject: [PATCH 1/2] remove pipeline --- .woodpecker/.dashboard.yaml | 56 ------------------------------------- 1 file changed, 56 deletions(-) delete mode 100644 .woodpecker/.dashboard.yaml diff --git a/.woodpecker/.dashboard.yaml b/.woodpecker/.dashboard.yaml deleted file mode 100644 index a74f8f1..0000000 --- a/.woodpecker/.dashboard.yaml +++ /dev/null @@ -1,56 +0,0 @@ -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/*'] From 24853e507cf4355aac6e1839f4938bf5aaea58f5 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Fri, 4 Oct 2024 19:15:22 +0200 Subject: [PATCH 2/2] change directory for dashboard deployments --- app-files/core-deployments.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app-files/core-deployments.yaml b/app-files/core-deployments.yaml index cbeb2ed..53bc7dc 100644 --- a/app-files/core-deployments.yaml +++ b/app-files/core-deployments.yaml @@ -240,7 +240,7 @@ spec: source: repoURL: https://git.ar21.de/yolokube/core-deployments.git targetRevision: HEAD - path: dashboard/prod + path: dashboard/overlays/prod destination: server: https://kubernetes.default.svc namespace: dashboard @@ -260,7 +260,7 @@ spec: source: repoURL: https://git.ar21.de/yolokube/core-deployments.git targetRevision: HEAD - path: dashboard/staging + path: dashboard/overlays/staging destination: server: https://kubernetes.default.svc namespace: dashboard-staging