2 Commits

Author SHA1 Message Date
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
+11
View File
@@ -29,6 +29,17 @@ 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: |
echo "${{ secrets.NAS_SSH_KEY }}" > /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
- name: Redéployer sur TrueNAS
run: |
curl -sf -X POST http://172.16.11.1/api/v2.0/app/redeploy \