corriger le workflow : on déploie pour de vrai cette fois !
Build and Deploy Hugo / build (push) Successful in 7s
Build and Deploy Hugo / build (push) Successful in 7s
This commit is contained in:
@@ -34,6 +34,15 @@ jobs:
|
||||
KUBE_TOKEN: ${{ secrets.KUBE_TOKEN }}
|
||||
KUBE_SERVER: ${{ secrets.KUBE_SERVER }}
|
||||
run: |
|
||||
echo "Server: ${KUBE_SERVER}"
|
||||
echo "Token length: ${#KUBE_TOKEN}"
|
||||
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
|
||||
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/
|
||||
|
||||
Reference in New Issue
Block a user