ci: trigger PORT auto-redeploy after image push
Build and Push Docker Image / build (push) Successful in 59s
Build and Push Docker Image / build (push) Successful in 59s
This commit is contained in:
@@ -33,3 +33,12 @@ jobs:
|
||||
- name: Prune dangling images on host
|
||||
if: always()
|
||||
run: docker image prune -f 2>/dev/null || true
|
||||
|
||||
- name: Trigger PORT redeploy
|
||||
if: success()
|
||||
run: |
|
||||
NAME="${{ gitea.repository }}"; NAME="${NAME##*/}"
|
||||
curl -fsS -X POST https://port.alwisp.com/hooks/gitea \
|
||||
-H "X-Deploy-Token: ${{ secrets.WEBHOOK_SECRET }}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{\"container\":\"${NAME}\"}" || echo "PORT redeploy trigger failed (non-fatal)"
|
||||
|
||||
Reference in New Issue
Block a user