debug deploy
Build and Deploy Hugo / build (push) Successful in 4s

This commit is contained in:
2026-05-21 11:52:21 +00:00
parent 9cd0692808
commit c445042afc
+2 -14
View File
@@ -34,18 +34,6 @@ jobs:
KUBE_TOKEN: ${{ secrets.KUBE_TOKEN }}
KUBE_SERVER: ${{ secrets.KUBE_SERVER }}
run: |
kubectl config set-cluster homelab \
--server=${KUBE_SERVER} \
--insecure-skip-tls-verify=true
kubectl config set-credentials deployer \
--token=${KUBE_TOKEN}
kubectl config set-context homelab \
--cluster=homelab \
--user=deployer
kubectl config use-context homelab
# Désactive l'auto-detection du ServiceAccount K8s
unset KUBERNETES_SERVICE_HOST
unset KUBERNETES_SERVICE_PORT
POD=$(kubectl get pods -n blog -l app=hugo-nginx -o jsonpath='{.items[0].metadata.name}')
kubectl cp public/. blog/${POD}:/usr/share/nginx/html/
echo "Server: ${KUBE_SERVER}"
echo "Token length: ${#KUBE_TOKEN}"