ci: trigger Dokploy redeploy via API after image push
Build and Deploy Spring Boot Server / build (push) Failing after 1m48s
Build and Deploy Spring Boot Server / build (push) Failing after 1m48s
This commit is contained in:
@@ -47,7 +47,11 @@ jobs:
|
||||
cache-from: type=registry,ref=tea.zendric.de/cedric/xpensely-server:buildcache
|
||||
cache-to: type=registry,ref=tea.zendric.de/cedric/xpensely-server:buildcache,mode=max
|
||||
|
||||
# 8. Trigger Dokploy to redeploy the dev server automatically
|
||||
# 8. Trigger Dokploy to redeploy the dev server automatically via API
|
||||
- name: Trigger Dokploy Redeploy
|
||||
run: |
|
||||
curl -X POST "${{ secrets.DOKPLOY_WEBHOOK_URL }}" --fail
|
||||
curl -X POST "https://dokploy.zendric.de/api/compose.redeploy" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "x-api-key: ${{ secrets.DOKPLOY_API_TOKEN }}" \
|
||||
-d "{\"composeId\": \"${{ secrets.DOKPLOY_COMPOSE_ID }}\"}" \
|
||||
--fail
|
||||
|
||||
Reference in New Issue
Block a user