From 2623ec764338b47ef29e49118ab4e4a194c0ffd3 Mon Sep 17 00:00:00 2001 From: Dokkae6949 Date: Sun, 14 Dec 2025 00:06:42 +0100 Subject: [PATCH] feat: dokploy deployment api call --- .github/workflows/docker-image.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 1c21d63..68fca5a 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -71,3 +71,20 @@ jobs: labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha 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 }}" + }' \ No newline at end of file