From bce8c1c8eb168f9534ea98c767625d079537c122 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alo=C3=AFs=20Coquillard?= Date: Mon, 25 May 2026 14:27:25 +0000 Subject: [PATCH] Actualiser .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 51d5199..caed5e7 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -9,6 +9,7 @@ jobs: build: runs-on: native timeout-minutes: 15 + steps: - name: Checkout env: @@ -22,25 +23,10 @@ jobs: bundle install --path vendor/bundle - name: Build - run: bundle exec jekyll build - - - name: Install kubectl run: | - wget -q https://dl.k8s.io/release/v1.31.0/bin/linux/amd64/kubectl - chmod +x kubectl - mv kubectl /usr/local/bin/kubectl + bundle exec jekyll build - name: Deploy - env: - KUBE_TOKEN: ${{ secrets.KUBE_TOKEN }} - KUBE_SERVER: ${{ secrets.KUBE_SERVER }} run: | - unset KUBERNETES_SERVICE_HOST KUBERNETES_SERVICE_PORT - 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 research -l app=research-nginx -o jsonpath='{.items[0].metadata.name}') - kubectl cp _site/. research/${POD}:/usr/share/nginx/html/ + kubectl cp _site/. research/${POD}:/usr/share/nginx/html/ \ No newline at end of file