Compare commits
29 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 011264a87b | |||
| a2d18c18d8 | |||
| b5151db0ac | |||
| 5cd46571f2 | |||
| 1233d80c8f | |||
| 89fb02cdea | |||
| 72f2568b68 | |||
| 8a49fc57f1 | |||
| a0be839632 | |||
| d5c5d2b6ba | |||
| 3198b21683 | |||
| ca1a732033 | |||
| 0977a7c3b3 | |||
| eb436e2c31 | |||
| 21fba7a842 | |||
| 70398efeea | |||
| 806843b9c7 | |||
| 91ab376f38 | |||
| 3496653d33 | |||
| 02b732e24c | |||
| 1099037db1 | |||
| 8c37c764e9 | |||
| 6f392bbbed | |||
| 4a63bc1da8 | |||
| ca423073f1 | |||
| 8bf80a9890 | |||
| a520a65f1b | |||
| bb8d7f159c | |||
| a92f578dcf |
@@ -0,0 +1 @@
|
|||||||
|
# CI trigger 20260525231507 - post-DinD verification (CAR-1042)
|
||||||
+12
-11
@@ -143,7 +143,7 @@ jobs:
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
TITLE="ci(dev): update auth image (${GITHUB_SHA::12})"
|
TITLE="ci(dev): update auth image (${GITHUB_SHA::12})"
|
||||||
PR_BODY=$(jq -n --arg head "cartsnitch:${BRANCH}" --arg base main --arg title "$TITLE" --arg body "Bumps apps/overlays/dev/kustomization.yaml auth newTag to \`${{ steps.tag.outputs.tag }}\` from cartsnitch/auth CI build $GITHUB_SHA." \
|
PR_BODY=$(jq -n --arg head "cartsnitch:${BRANCH}" --arg base dev --arg title "$TITLE" --arg body "Bumps apps/overlays/dev/kustomization.yaml auth newTag to \`${{ steps.tag.outputs.tag }}\` from cartsnitch/auth CI build $GITHUB_SHA." \
|
||||||
'{head: $head, base: $base, title: $title, body: $body}')
|
'{head: $head, base: $base, title: $title, body: $body}')
|
||||||
PR_JSON=$(curl -sS -X POST \
|
PR_JSON=$(curl -sS -X POST \
|
||||||
-H "Authorization: token ${CI_GITEA_TOKEN}" \
|
-H "Authorization: token ${CI_GITEA_TOKEN}" \
|
||||||
@@ -177,11 +177,12 @@ jobs:
|
|||||||
MERGED=$(echo "$MERGE_RESP" | jq -r '.merged // false')
|
MERGED=$(echo "$MERGE_RESP" | jq -r '.merged // false')
|
||||||
if [ "$MERGED" = "true" ]; then
|
if [ "$MERGED" = "true" ]; then
|
||||||
echo "PR #${PR_NUM} merged into cartsnitch/infra dev"
|
echo "PR #${PR_NUM} merged into cartsnitch/infra dev"
|
||||||
else
|
elif echo "$MERGE_RESP" | grep -qi 'does not have enough approvals'; then
|
||||||
# CAR-1438: PR opened successfully; any non-merged outcome (empty body,
|
echo "::notice::infra PR #${PR_NUM} opened and awaiting CTO (cs_savannah) approve+merge — GitOps approval gate, not a failure"
|
||||||
# approval-gate, pending checks) is the GitOps gate — not a failure.
|
|
||||||
echo "::notice::infra PR #${PR_NUM} opened — auto-merge not available (${MERGE_RESP:-empty response}); awaiting CTO (cs_savannah) approve+merge"
|
|
||||||
exit 0
|
exit 0
|
||||||
|
else
|
||||||
|
echo "::error::Auto-merge of cartsnitch/infra PR #${PR_NUM} failed: $MERGE_RESP"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
deploy-uat:
|
deploy-uat:
|
||||||
@@ -244,7 +245,7 @@ jobs:
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
TITLE="ci(uat): update auth image (${GITHUB_SHA::12})"
|
TITLE="ci(uat): update auth image (${GITHUB_SHA::12})"
|
||||||
PR_BODY=$(jq -n --arg head "cartsnitch:${BRANCH}" --arg base main --arg title "$TITLE" --arg body "Bumps apps/overlays/uat/kustomization.yaml auth newTag to \`${{ steps.tag.outputs.tag }}\` from cartsnitch/auth CI build $GITHUB_SHA." \
|
PR_BODY=$(jq -n --arg head "cartsnitch:${BRANCH}" --arg base uat --arg title "$TITLE" --arg body "Bumps apps/overlays/uat/kustomization.yaml auth newTag to \`${{ steps.tag.outputs.tag }}\` from cartsnitch/auth CI build $GITHUB_SHA." \
|
||||||
'{head: $head, base: $base, title: $title, body: $body}')
|
'{head: $head, base: $base, title: $title, body: $body}')
|
||||||
PR_JSON=$(curl -sS -X POST \
|
PR_JSON=$(curl -sS -X POST \
|
||||||
-H "Authorization: token ${CI_GITEA_TOKEN}" \
|
-H "Authorization: token ${CI_GITEA_TOKEN}" \
|
||||||
@@ -274,10 +275,10 @@ jobs:
|
|||||||
MERGED=$(echo "$MERGE_RESP" | jq -r '.merged // false')
|
MERGED=$(echo "$MERGE_RESP" | jq -r '.merged // false')
|
||||||
if [ "$MERGED" = "true" ]; then
|
if [ "$MERGED" = "true" ]; then
|
||||||
echo "PR #${PR_NUM} merged into cartsnitch/infra uat"
|
echo "PR #${PR_NUM} merged into cartsnitch/infra uat"
|
||||||
else
|
elif echo "$MERGE_RESP" | grep -qi 'does not have enough approvals'; then
|
||||||
# CAR-1438: PR opened successfully; any non-merged outcome (empty body,
|
echo "::notice::infra PR #${PR_NUM} opened and awaiting CTO (cs_savannah) approve+merge — GitOps approval gate, not a failure"
|
||||||
# approval-gate, pending checks) is the GitOps gate — not a failure.
|
|
||||||
echo "::notice::infra PR #${PR_NUM} opened — auto-merge not available (${MERGE_RESP:-empty response}); awaiting CTO (cs_savannah) approve+merge"
|
|
||||||
exit 0
|
exit 0
|
||||||
|
else
|
||||||
|
echo "::error::Auto-merge of cartsnitch/infra PR #${PR_NUM} failed: $MERGE_RESP"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user