From 438d739b1a2cdff9a4e16219dc5395597e80dc0f Mon Sep 17 00:00:00 2001 From: LathanDevers Date: Sun, 26 Jul 2026 22:18:26 +0200 Subject: [PATCH] correct deploy --- .gitea/workflows/deploy.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 94ea944..4eb6716 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -8,11 +8,20 @@ on: jobs: build-and-deploy: runs-on: ubuntu-latest + + # 1. On désactive la vérification SSL pour tout le conteneur du job (Node.js et Git) + env: + GIT_SSL_NO_VERIFY: "true" + NODE_TLS_REJECT_UNAUTHORIZED: "0" steps: - name: Patch DNS local pour Gitea Runner run: sudo echo "10.10.40.31 git.bunker.lan" | sudo tee -a /etc/hosts + # 2. On force l'exécutable Git interne à ignorer la vérification de l'autorité locale + - name: Configuration de Git pour SSL + run: git config --global http.sslVerify false + - name: Récupération du code uses: actions/checkout@v4 @@ -32,9 +41,9 @@ jobs: - name: Déploiement FTP (10.10.40.12) env: - FTP_USER: ${{ secrets.FTP_USER }} # Le compte FTP enfermé dans aegis.gise.be + FTP_USER: ${{ secrets.FTP_USER }} # Le compte FTP enfermé dans aegis.gise.be FTP_PASSWORD: ${{ secrets.FTP_PASSWORD }} - FTP_SERVER: ${{ secrets.FTP_SERVER }} # Doit contenir : 10.10.40.12 + FTP_SERVER: ${{ secrets.FTP_SERVER }} # Doit contenir : 10.10.40.12 run: | cat << EOF > script.lftp set ftp:passive-mode true