Skip to content

M1.4: remove legacy deploy.yml — staging is the single main-push deploy - #2

Merged
mattdani21 merged 4 commits into
mainfrom
autopilot/m1.4-legacy-deploy
Aug 7, 2026
Merged

M1.4: remove legacy deploy.yml — staging is the single main-push deploy#2
mattdani21 merged 4 commits into
mainfrom
autopilot/m1.4-legacy-deploy

Conversation

@mattdani21

Copy link
Copy Markdown
Owner

M1.4 — Remove legacy deploy.yml

What

Deleted .github/workflows/deploy.yml — the legacy GCP_SA_KEY-based deploy workflow.

Why

  • It triggered on every push to main, exactly like deploy-staging.yml, and deployed to a third service name (atelier) — so a push to main would fire two deploy workflows targeting different Cloud Run services with no clear owner.
  • It used secrets.GCP_SA_KEY (long-lived service-account key) instead of Workload Identity Federation (vars.GCP_WIP/GCP_SA) used by staging and prod.
  • It passed secrets as plain env vars (DATABASE_URL, AUTH_SECRET, STRIPE_SECRET_KEY) instead of Secret Manager references.
  • The secrets it consumes (GCP_PROJECT_ID, GCP_SA_KEY, DATABASE_URL, …) are not part of the provisioning list in docs/P1.3-provisioning.md, so it would fail at auth on the first main push anyway.

After this change, deploy responsibilities are unambiguous:

  • ci.yml — lint/type/build/unit/e2e on every PR + main
  • deploy-staging.yml — the single auto-deploy on main push (Cloud Run atelier-staging, 0% → health gate → 100%)
  • deploy-prod.yml — tagged v* releases with environment approval gate (Cloud Run atelier-prod, gradual shift)

How tested

No runtime code touched — workflow removal only. STATE.md updated to reflect the removal. CI (lint/type/build/tests) is unaffected and runs on this PR.

Legacy GCP_SA_KEY-based workflow duplicated deploy-staging.yml on every
main push, targeted a third service name (atelier), and consumed secrets
not in the provisioning list. Removed; STATE.md updated.
Second commit on this branch: strips the M2 invite-flow files that were
swept into the first commit by a broad git add, leaving only the workflow
removal + STATE.md notes. PR diff = deploy.yml deletion + STATE.md edits.
Commit 90f91e0 intended to strip only M2 invite-flow files, but the
broad git add also deleted core app files (prisma/schema.prisma, auth,
middleware, cart/checkout/orders/commissions routes, e2e seed).
Restore them from main so the PR scope is exactly the stated intent:
deploy.yml removal + GOAL.md/STATE.md docs updates.
@mattdani21
mattdani21 merged commit 7325f82 into main Aug 7, 2026
2 of 3 checks passed
@mattdani21
mattdani21 deleted the autopilot/m1.4-legacy-deploy branch August 7, 2026 06:19
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.

1 participant