Files
smart-home-tablet/.gitea/workflows/deploy.yml
Cosmo b7facc25b8
Some checks failed
Deploy to VM / deploy (push) Failing after 1s
ci: fix deploy workflow for VM architecture
2026-04-22 12:05:57 +00:00

20 lines
628 B
YAML

name: Deploy to VM
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Pull latest code and rebuild
run: |
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'