ci(workflows): change kubeconfig from base64 to plain text
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 <noreply@anthropic.com>
This commit is contained in:
parent
53905cb9e2
commit
56372bc7bf
@ -50,7 +50,7 @@ jobs:
|
|||||||
- name: Configure kubectl
|
- name: Configure kubectl
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.kube
|
mkdir -p ~/.kube
|
||||||
echo "${{ secrets.KUBE_CONFIG }}" | base64 -d > ~/.kube/config
|
echo "${{ secrets.KUBE_CONFIG }}" > ~/.kube/config
|
||||||
chmod 600 ~/.kube/config
|
chmod 600 ~/.kube/config
|
||||||
|
|
||||||
- name: Validate kubeconfig and cluster connectivity
|
- name: Validate kubeconfig and cluster connectivity
|
||||||
|
|||||||
@ -50,7 +50,7 @@ jobs:
|
|||||||
- name: Configure kubectl
|
- name: Configure kubectl
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.kube
|
mkdir -p ~/.kube
|
||||||
echo "${{ secrets.KUBE_CONFIG }}" | base64 -d > ~/.kube/config
|
echo "${{ secrets.KUBE_CONFIG }}" > ~/.kube/config
|
||||||
chmod 600 ~/.kube/config
|
chmod 600 ~/.kube/config
|
||||||
|
|
||||||
- name: Validate kubeconfig and cluster connectivity
|
- name: Validate kubeconfig and cluster connectivity
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user