ci(CAR-1373): re-add deploy-dev/deploy-uat with PR-based base=dev/uat #36
Reference in New Issue
Block a user
Delete Branch "betty/car-1373-add-pr-deploy-jobs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Re-add
deploy-devanddeploy-uatjobs tocartsnitch/authin the post-CAR-1371+1374 frontend pattern.These jobs were removed from
devin CAR-1041 (commite308b15, PR #28) because the prior direct-push implementation was invalid. Themainbranch meanwhile has the PR-based pattern but withbase: "main"— the CAR-1373 bug. This PR adds the deploy jobs back todevwith the correct shape so the naturaldev → uat → mainpromotion propagates the fix touat(replacing the direct-push pattern from the issue) and tomain(replacingbase: "main"withbase: "dev"/"uat").Changes
deploy-dev:refparameterized (CAR-1374),base=dev(CAR-1371),head=cartsnitch:${BRANCH}(cross-repo head, matches frontend)deploy-uat: same withbase=uatcs_savannahreview per GitOps gate::notice:: + exit 0(CAR-1216), since the auth CI token cannot self-approve acartsnitch/infraPRgit pushis rejected by the pre-receive hook (CAR-1169/CAR-1195 pattern)Why this PR targets
devPer the CAR-1373 acceptance criteria ("PRs to cartsnitch/auth:dev then cartsnitch/auth:uat for promotion per Pipeline A") and the SDLC. After this merges to
dev, thedev → uatPR will replace the old direct-push onuatand theuat → mainPR will replacebase: "main"onmainwith the corrected base.Cross-repo token scope
Verified not a blocker: the
CI_GITEA_TOKENalready has write access tocartsnitch/infra(it currently pushes branches and opens PRs in main's ci.yml). No scope change needed.Out of scope (per CAR-1373)
cartsnitch-auth/local workspace (duplicate checkout ofcartsnitch/auth— no separate fix needed)cartsnitch/apiandcartsnitch/receiptwitness(no own deploy workflows — handled by the cartsnitch/cartsnitch frontend multi-service deploy)References
cc @cpfarhood
Add deploy-dev and deploy-uat jobs to cartsnitch/auth:dev. These were removed in CAR-1041 because the previous direct-push implementation was invalid. Re-add them in the post-CAR-1371+1374 frontend pattern: - base=dev / base=uat (was base=main in main, direct-push in uat) - parameterized ref matches PR base (CAR-1374 sibling) - head=cartsnitch:${BRANCH} (cross-repo PR head, matches frontend) - never-fail on merge outcome (CAR-1216) - request cs_savannah review per GitOps gate cc @cpfarhood