ci: mise à jour version TrueNAS app.yaml à chaque tag
Build & Deploy / deploy (push) Failing after 20s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
alexandre grondin
2026-05-21 13:07:52 +02:00
parent 35aa615b1e
commit 12a5dc7aba
+10
View File
@@ -29,6 +29,16 @@ jobs:
docker push registry.maisongrondin.fr/alexandre/budget-commun:${{ gitea.ref_name }}
docker push registry.maisongrondin.fr/alexandre/budget-commun:latest
- name: Mettre à jour la version sur TrueNAS
run: |
ssh -i <(echo "${{ secrets.NAS_SSH_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"
- name: Redéployer sur TrueNAS
run: |
curl -sf -X POST http://172.16.11.1/api/v2.0/app/redeploy \