fix: install kubectl and configure kubeconfig in CI
Some checks failed
Build & Deploy to K3s / build-and-deploy (push) Failing after 22s

This commit is contained in:
ordinarthur 2026-04-11 12:02:55 +02:00
parent e633a5ef72
commit 8e39827926

View File

@ -29,6 +29,16 @@ jobs:
docker push ${{ env.IMAGE }}:${{ github.sha }} docker push ${{ env.IMAGE }}:${{ github.sha }}
docker push ${{ env.IMAGE }}:latest docker push ${{ env.IMAGE }}:latest
- name: Install kubectl
run: |
curl -LO "https://dl.k8s.io/release/$(curl -Ls https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl && mv kubectl /usr/local/bin/kubectl
- name: Configure kubeconfig
run: |
mkdir -p ~/.kube
echo "${{ secrets.KUBECONFIG }}" | base64 -d > ~/.kube/config
- name: Deploy to K3s - name: Deploy to K3s
run: | run: |
kubectl apply -f k8s/namespace.yml kubectl apply -f k8s/namespace.yml