Skip to content

Commit 01491dd

Browse files
authored
Automatically deploy container on merge
Signed-off-by: GitHub <[email protected]>
1 parent 6b67563 commit 01491dd

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/container-build-push.yaml renamed to .github/workflows/container-build-deploy.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Container Build and Push"
1+
name: Container Build and Deploy
22

33
on:
44
push:
@@ -20,3 +20,11 @@ jobs:
2020
uses: darbiadev/.github/.github/workflows/container-build-push.yaml@41518576ed6c499ed3e68d5cbceaeaa50abd471a # v14.1.0
2121
with:
2222
file-name: Dockerfile
23+
24+
deploy:
25+
needs: build-push
26+
runs-on: ubuntu-latest
27+
if: ${{ github.ref == 'refs/heads/main' }}
28+
steps:
29+
- name: "Update deployment"
30+
run: curl -X POST '${{ secrets.DEPLOY_WEBHOOK }}'

0 commit comments

Comments
 (0)