From 47748058406d1e14fc2718f07d895366f09a8e3f Mon Sep 17 00:00:00 2001 From: Alexis Bruneteau Date: Fri, 17 Oct 2025 01:10:07 +0200 Subject: [PATCH] ci(workflows): change kubeconfig from base64 to plain text MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove base64 decoding from kubeconfig setup step. Now accepts KUBE_CONFIG secret as plain text directly instead of base64 encoded. This simplifies secret configuration in Gitea UI - users can paste kubeconfig content directly without requiring base64 encoding. Changes: - deploy-prod.yml: Remove 'base64 -d' from kubeconfig setup - deploy-alpha.yml: Remove 'base64 -d' from kubeconfig setup Secret Configuration: Old: KUBE_CONFIG should be base64 encoded New: KUBE_CONFIG should be plain text kubeconfig content 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .gitea/workflows/deploy-alpha.yml | 2 +- .gitea/workflows/deploy-prod.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy-alpha.yml b/.gitea/workflows/deploy-alpha.yml index 45ff928..8bed9f1 100644 --- a/.gitea/workflows/deploy-alpha.yml +++ b/.gitea/workflows/deploy-alpha.yml @@ -50,7 +50,7 @@ jobs: - name: Configure kubectl run: | mkdir -p ~/.kube - echo "${{ secrets.KUBE_CONFIG }}" | base64 -d > ~/.kube/config + echo "${{ secrets.KUBE_CONFIG }}" > ~/.kube/config chmod 600 ~/.kube/config - name: Validate kubeconfig and cluster connectivity diff --git a/.gitea/workflows/deploy-prod.yml b/.gitea/workflows/deploy-prod.yml index a4680d2..2888f0a 100644 --- a/.gitea/workflows/deploy-prod.yml +++ b/.gitea/workflows/deploy-prod.yml @@ -50,7 +50,7 @@ jobs: - name: Configure kubectl run: | mkdir -p ~/.kube - echo "${{ secrets.KUBE_CONFIG }}" | base64 -d > ~/.kube/config + echo "${{ secrets.KUBE_CONFIG }}" > ~/.kube/config chmod 600 ~/.kube/config - name: Validate kubeconfig and cluster connectivity