fix: deploy
Build and Deploy Hugo / build (push) Failing after 4s

This commit is contained in:
2026-05-21 11:46:35 +00:00
parent faf00c3364
commit 9cd0692808
+3
View File
@@ -43,6 +43,9 @@ jobs:
--cluster=homelab \ --cluster=homelab \
--user=deployer --user=deployer
kubectl config use-context homelab 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}') 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/ kubectl cp public/. blog/${POD}:/usr/share/nginx/html/