feat : upa
CI / Verify (push) Successful in 1m39s
CI / Build immutable images and deploy (push) Successful in 2m46s

This commit is contained in:
2026-10-07 19:24:45 +07:00 Unverified
parent 6d0feb11ca
commit 90ba91b784
4 changed files with 20 additions and 45 deletions
-22
View File
@@ -188,25 +188,3 @@ jobs:
kubectl --kubeconfig "$KUBECONFIG" --namespace "$DEPLOY_NAMESPACE" rollout status \
deployment/buzz-sheet-discord-worker \
--timeout=10m
- name: Publish deployment result
if: always()
continue-on-error: true
env:
DEPLOYMENT_WEBHOOK_SECRET: ${{ secrets.DEPLOYMENT_WEBHOOK_SECRET }}
DEPLOYMENT_JOB_STATUS: ${{ job.status }}
REVISION: ${{ gitea.sha }}
run: |
if [ -z "$DEPLOYMENT_WEBHOOK_SECRET" ]; then
echo "DEPLOYMENT_WEBHOOK_SECRET is not configured; skipping notification"
exit 0
fi
status=failed
if [ "$DEPLOYMENT_JOB_STATUS" = "success" ]; then
status=ready
fi
curl --fail-with-body --silent --show-error --retry 3 \
--header "Authorization: Bearer $DEPLOYMENT_WEBHOOK_SECRET" \
--header "Content-Type: application/json" \
--data "{\"deploymentId\":\"$REVISION\",\"status\":\"$status\"}" \
"$BASE_URL/api/deployments/status"