ci: fix deploy workflow for VM architecture
Some checks failed
Deploy to VM / deploy (push) Failing after 1s
Some checks failed
Deploy to VM / deploy (push) Failing after 1s
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Deploy to Coolify
|
name: Deploy to VM
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -8,10 +8,12 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Pull latest code and rebuild
|
||||||
|
|
||||||
- name: Trigger Coolify Deploy
|
|
||||||
run: |
|
run: |
|
||||||
curl -X POST "https://coolify.digital-home.site/api/v1/deploy?uuid=${{ secrets.COOLIFY_APP_UUID }}&force=false" \
|
cd /opt/digital-home/smart-home-tablet
|
||||||
-H "Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}" \
|
git pull origin main
|
||||||
-H "Content-Type: application/json"
|
|
||||||
|
# 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'
|
||||||
|
|||||||
Reference in New Issue
Block a user