Fail backend deploy on webhook errors
All checks were successful
Build and deploy Backend / build (push) Successful in 26s
All checks were successful
Build and deploy Backend / build (push) Successful in 26s
This commit is contained in:
@@ -52,10 +52,13 @@ jobs:
|
||||
{"ref":"refs/heads/main","after":"$GITHUB_SHA","commits":[{"id":"$GITHUB_SHA","message":"$SERVICE_NAME #${GITHUB_RUN_NUMBER:-0} ${GITHUB_SHA:0:7}"}]}
|
||||
JSON
|
||||
)
|
||||
curl -fsS -X POST "$DOKPLOY_DEPLOY_WEBHOOK" \
|
||||
response_file="$(mktemp)"
|
||||
status_code="$(curl -sS -o "$response_file" -w "%{http_code}" -X POST "$DOKPLOY_DEPLOY_WEBHOOK" \
|
||||
-H "x-gitea-event: push" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "$payload"
|
||||
-d "$payload")"
|
||||
cat "$response_file"
|
||||
[ "$status_code" = "200" ]
|
||||
|
||||
- name: Prune shared BuildKit cache
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user