feat: dokploy deployment api call
This commit is contained in:
parent
df1870121f
commit
2623ec7643
1 changed files with 17 additions and 0 deletions
17
.github/workflows/docker-image.yml
vendored
17
.github/workflows/docker-image.yml
vendored
|
|
@ -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 }}"
|
||||||
|
}'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue