4 Commits

Author SHA1 Message Date
alexandre grondin 1009279039 ci: mise à jour version via docker run plutôt que SSH
Build & Deploy / deploy (push) Successful in 15s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21 13:14:16 +02:00
alexandre grondin 0e81d3a0d3 ci: clé SSH en base64 pour éviter les problèmes de format
Build & Deploy / deploy (push) Failing after 19s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21 13:12:58 +02:00
alexandre grondin 06c4a1c886 ci: fix SSH key pour mise à jour version TrueNAS
Build & Deploy / deploy (push) Failing after 18s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21 13:09:40 +02:00
alexandre grondin 12a5dc7aba 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>
2026-05-21 13:07:52 +02:00
+8
View File
@@ -29,6 +29,14 @@ jobs:
docker push registry.maisongrondin.fr/alexandre/budget-commun:${{ gitea.ref_name }} docker push registry.maisongrondin.fr/alexandre/budget-commun:${{ gitea.ref_name }}
docker push registry.maisongrondin.fr/alexandre/budget-commun:latest docker push registry.maisongrondin.fr/alexandre/budget-commun:latest
- name: Mettre à jour la version sur TrueNAS
run: |
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 - name: Redéployer sur TrueNAS
run: | run: |
curl -sf -X POST http://172.16.11.1/api/v2.0/app/redeploy \ curl -sf -X POST http://172.16.11.1/api/v2.0/app/redeploy \