ci: fix deploy workflow for VM architecture
Some checks failed
Deploy to VM / deploy (push) Failing after 1s

This commit is contained in:
Cosmo
2026-04-22 12:05:57 +00:00
parent 415c34e3ab
commit b7facc25b8

View File

@@ -1,4 +1,4 @@
name: Deploy to Coolify
name: Deploy to VM
on:
push:
@@ -8,10 +8,12 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Trigger Coolify Deploy
- name: Pull latest code and rebuild
run: |
curl -X POST "https://coolify.digital-home.site/api/v1/deploy?uuid=${{ secrets.COOLIFY_APP_UUID }}&force=false" \
-H "Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}" \
-H "Content-Type: application/json"
cd /opt/digital-home/smart-home-tablet
git pull origin main
# Restart Coolify service (rebuild + restart)
curl -X POST 'https://coolify.digital-home.site/api/v1/services/yfh53kixpwkjlo4zibglx4n2/restart' -H 'Authorization: Bearer 4|8e75d9edfac009446b19abca1b9fdfadbe6da6b8f3efb0526520f0d2e3cfc266' -H 'Content-Type: application/json' || true
echo 'Deploy triggered'