feat: dokploy deployment api call

This commit is contained in:
Finn Linck Ryan 2025-12-14 00:06:42 +01:00
parent df1870121f
commit 2623ec7643

View file

@ -71,3 +71,20 @@ jobs:
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha cache-from: type=gha
cache-to: type=gha,mode=max cache-to: type=gha,mode=max
deploy:
runs-on: ubuntu-latest
needs: build
if: success()
steps:
- name: Trigger Dokploy deployment
run: |
curl -X 'POST' \
'http://5.180.253.47:3000/api/application.deploy' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H 'x-api-key: ${{ secrets.DOKPLOY_API_KEY }}' \
-d '{
"applicationId": "${{ vars.DOKPLOY_APP_ID }}"
}'