Skip to content

ci: Split deploy-db-migration into per-env jobs so the inactive env shows skipped#242

Merged
spalmurray merged 1 commit into
mainfrom
spalmurray/deploy-skip-inactive-env
Jun 5, 2026
Merged

ci: Split deploy-db-migration into per-env jobs so the inactive env shows skipped#242
spalmurray merged 1 commit into
mainfrom
spalmurray/deploy-skip-inactive-env

Conversation

@spalmurray

@spalmurray spalmurray commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Splits the single matrix-based deploy-db-migration job into separate deploy-db-migration-test and deploy-db-migration-prod jobs, each gated by a job-level if: that mirrors the existing deploy-test/deploy-prod conditions, and rewires the deploy jobs' needs: to the matching per-env migration. This is a behavioral no-op: the same migrations and deploys run against the same environments under the same trigger conditions. The only change is that the non-targeted environment's migration job now reports as skipped instead of a misleading green success (where the job ran but every step was individually if-skipped), which previously read like the inactive env had migrated when it had not.

Tested here looking good.

@spalmurray spalmurray marked this pull request as ready for review June 4, 2026 21:59
@spalmurray spalmurray requested a review from a team as a code owner June 4, 2026 21:59
@spalmurray spalmurray merged commit ffb9f04 into main Jun 5, 2026
36 checks passed
@spalmurray spalmurray deleted the spalmurray/deploy-skip-inactive-env branch June 5, 2026 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants