release-gate action (release + promote modes) with fixture tests #2
Labels
No labels
auto-update
blocked
dependency
major
release-blocker
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
You do not have permission to read 4 dependencies
Reference
Wi3eDigital/laravel-deploy-actions#2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Context
release-gatedecides when a draft is published (mode: release) and which tag is promoted to prod (mode: promote). It is the core of the rollout; every repo pins it by commit SHA.Plan: https://forgejo.entwirr.me/Wi3eDigital/laravel-deploy-actions/src/branch/main/docs/plan.md (sections "Release rules" and "Promote rules").
Tasks
release-gate/(Forgejo API only, no extra services)mode(release|promote), token, repo,dry-run, thresholds (SOAK_DAYS=4,DEPS_THRESHOLD=10,DEPS_MAX_AGE_DAYS=14), prod URLpublish,candidate,critical,reasons,skip_reasonmode: release: re-run the drafter first, then apply the release rulesmode: promote: pick the candidate, then apply the promote rulesdropColumn,dropTable,renameColumn,dropIfExistson an existing table, in migrations added since the version prod runs.envkey detection since the version prod runs; skip when the release body contains<!-- env-acknowledged -->.release/requires.jsonand compare with portal prod/versionAcceptance criteria
Release mode publishes only if all hold:
AUTOMATION_PAUSEDis nottrueandAUTO_RELEASEison(dry-runreports only)vX.Y.Ztag existsdependencylabel, notchore(deps)title), or a dependency PR labelledsecurity, or at least 10 dependency PRs, or the oldest unreleased dependency PR is older than 14 dayscritical=truewith reasons for: labelsecurity,breaking-changeorcaution; a major dependency update; new migrations; new.envkeysPromote mode:
deploy/staging=successand at leastSOAK_DAYSoldAUTOMATION_PAUSEDis nottrueandAUTO_PROMOTEison/versionis older than the candidate (semver); equal or newer givesskip_reason, not an errorrelease-blocker.envkeys since prod's version unless the release body has<!-- env-acknowledged -->notify/pre-prod=successat least 24h old/version>= version in.release/requires.json/versionaccepted as plain text or{"version": "vX.Y.Z"}Blocked by
Nothing. Starts after the plan PR #1 is merged.