We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f15e32 commit a8657b8Copy full SHA for a8657b8
.github/workflows/prod_container_img.yml
@@ -78,3 +78,19 @@ jobs:
78
echo VERSION=$VERSION
79
podman tag $IMAGE_NAME $IMAGE_ID:$VERSION
80
podman push $IMAGE_ID:$VERSION
81
+
82
+ trigger-redeploy:
83
+ name: Trigger Redeploy
84
+ if: github.ref == 'refs/heads/master'
85
+ runs-on: ubuntu-24.04
86
+ needs: [build]
87
+ steps:
88
+ - name: Install jq
89
+ run: sudo apt-get install jq
90
+ - name: Trigger
91
+ run: |
92
+ curl -X POST \
93
+ -H "Content-Type: application/json" \
94
+ -H "Authorization: Bearer ${{ secrets.DIGITALOCEAN_TOKEN }}" \
95
+ "https://api.digitalocean.com/v2/apps/${{ secrets.DIGITALOCEAN_APP_ID }}/deployments" \
96
+ | jq '.deployment.id' | grep -v null > /dev/null
0 commit comments