Skip to content

Commit c344a99

Browse files
authored
Update build-pocketbase.yml
1 parent 4d5933e commit c344a99

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/build-pocketbase.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,26 @@ jobs:
3232
-
3333
name: Set up Docker Buildx
3434
uses: docker/setup-buildx-action@v3
35-
-
36-
name: Build and Push
35+
36+
- name: Build and Push
3737
uses: docker/build-push-action@v6
3838
with:
3939
tags: ${{ steps.meta.outputs.tags }}
4040
platforms: linux/amd64,linux/arm64,linux/arm/v7
4141
push: true
4242
build-args: |
4343
PB_VERSION=${{ vars.PB_VERSION }}
44+
45+
- name: Trigger Dokploy Deployment
46+
run: |
47+
curl -X 'POST' \
48+
'${{ secrets.DOKPLOY_WEBHOOK_URL }}' \
49+
-H 'Content-Type: application/json' \
50+
-H 'x-github-event: push' \
51+
-d '{
52+
"ref": "refs/heads/production",
53+
"head_commit": {
54+
"id": "${{ github.sha }}",
55+
"message": "Deployment from Github Actions"
56+
}
57+
}'

0 commit comments

Comments
 (0)