ci: mise à jour metadata.yaml pour affichage correct dans l'UI TrueNAS
Build & Deploy / deploy (push) Successful in 12s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
alexandre grondin
2026-05-21 13:16:43 +02:00
parent 1009279039
commit 1de393c588
+6 -3
View File
@@ -32,10 +32,13 @@ jobs:
- name: Mettre à jour la version sur TrueNAS
run: |
docker run --rm \
-v /mnt/.ix-apps/app_configs/budget-commun/versions/1.0.0:/app \
-v /mnt/.ix-apps/app_configs/budget-commun:/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"
"sed -i 's/\"app_version\": \".*\"/\"app_version\": \"${{ gitea.ref_name }}\"/' /app/versions/1.0.0/app.yaml && \
sed -i 's/^\"version\": \".*\"/\"version\": \"${{ gitea.ref_name }}\"/' /app/versions/1.0.0/app.yaml && \
sed -i 's/\"app_version\": \".*\"/\"app_version\": \"${{ gitea.ref_name }}\"/' /app/metadata.yaml && \
sed -i 's/^\"version\": \".*\"/\"version\": \"${{ gitea.ref_name }}\"/' /app/metadata.yaml && \
sed -i 's/\"human_version\": \".*\"/\"human_version\": \"${{ gitea.ref_name }}_${{ gitea.ref_name }}\"/' /app/metadata.yaml"
- name: Redéployer sur TrueNAS
run: |