From 1009279039a255a54b39da636e34ac53ea594e74 Mon Sep 17 00:00:00 2001 From: alexandre grondin Date: Thu, 21 May 2026 13:14:16 +0200 Subject: [PATCH] =?UTF-8?q?ci:=20mise=20=C3=A0=20jour=20version=20via=20do?= =?UTF-8?q?cker=20run=20plut=C3=B4t=20que=20SSH?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/deploy.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 12a7fcd..cd85adf 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -31,14 +31,11 @@ jobs: - name: Mettre à jour la version sur TrueNAS run: | - echo "${{ secrets.NAS_SSH_KEY }}" | base64 -d > /tmp/nas_key - chmod 600 /tmp/nas_key - ssh -i /tmp/nas_key -o StrictHostKeyChecking=no truenas_admin@192.168.1.200 \ - "sudo sed -i 's/\"app_version\": \".*\"/\"app_version\": \"${{ gitea.ref_name }}\"/' \ - /mnt/.ix-apps/app_configs/budget-commun/versions/1.0.0/app.yaml && \ - sudo sed -i 's/^\"version\": \".*\"/\"version\": \"${{ gitea.ref_name }}\"/' \ - /mnt/.ix-apps/app_configs/budget-commun/versions/1.0.0/app.yaml" - rm /tmp/nas_key + docker run --rm \ + -v /mnt/.ix-apps/app_configs/budget-commun/versions/1.0.0:/app \ + alpine:3 sh -c \ + "sed -i 's/\"app_version\": \".*\"/\"app_version\": \"${{ gitea.ref_name }}\"/' /app/app.yaml && \ + sed -i 's/^\"version\": \".*\"/\"version\": \"${{ gitea.ref_name }}\"/' /app/app.yaml" - name: Redéployer sur TrueNAS run: |