From bfc3f46cf8644612e3026faf0d8a9561240a3fa3 Mon Sep 17 00:00:00 2001 From: mirage <119869686+ClementBobin@users.noreply.github.com> Date: Fri, 27 Mar 2026 09:24:32 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20am=C3=A9liorer=20la=20gestion=20de=20la?= =?UTF-8?q?=20cl=C3=A9=20SSH=20dans=20le=20workflow=20de=20d=C3=A9ploiemen?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index c587865..06193cc 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -15,11 +15,11 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - # Écriture de la clé SSH dans un fichier temporaire + # Écriture de la clé SSH - name: Setup SSH key run: | mkdir -p ~/.ssh - echo "${{ secrets.PROD_SSH_KEY }}" > ~/.ssh/id_prod + printf '%s\n' "${{ secrets.PROD_SSH_KEY }}" > ~/.ssh/id_prod chmod 600 ~/.ssh/id_prod ssh-keyscan -p ${{ secrets.PROD_SSH_PORT || 22 }} ${{ secrets.PROD_HOST }} >> ~/.ssh/known_hosts 2>/dev/null @@ -72,4 +72,4 @@ jobs: docker image prune -f echo "=== [PROD] Déploiement terminé ===" - ENDSSH + ENDSSH \ No newline at end of file