Skip to content

Commit 5ab2189

Browse files
committed
Trigger digital ocean redeploy whenever an image is pushed
1 parent 6f15e32 commit 5ab2189

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/prod_container_img.yml

+12
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,15 @@ jobs:
7878
echo VERSION=$VERSION
7979
podman tag $IMAGE_NAME $IMAGE_ID:$VERSION
8080
podman push $IMAGE_ID:$VERSION
81+
82+
trigger-redeploy:
83+
name: Trigger Redeploy
84+
runs-on: ubuntu-24.04
85+
needs: [build]
86+
steps:
87+
- name: Trigger
88+
run: |
89+
curl -X POST \
90+
-H "Content-Type: application/json" \
91+
-H "Authorization: Bearer ${{ secrets.DIGITALOCEAN_TOKEN }}" \
92+
"https://api.digitalocean.com/v2/apps/${{ secrets.DIGITALOCEAN_APP_ID }}/deployments"

0 commit comments

Comments
 (0)