Skip to content

Point main production deploy at the V7 Vercel project - #2986

Open
findolor wants to merge 2 commits into
mainfrom
main-vercel-prod-v7-secret
Open

findolor wants to merge 2 commits into
mainfrom
main-vercel-prod-v7-secret

Conversation

@findolor

@findolor findolor commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Why

v6.raindex.finance is served by the V6 Vercel project and is being frozen on the v6 branch. Main's manual production deploy (vercel-prod.yaml) still targeted the V6 project (VERCEL_PROJECT_ID_V6), so a single manual run from main would overwrite v6.raindex.finance.

V7 is not ready to ship, so a production deploy from main should fail until V7 is deliberately enabled.

What changed

Only .github/workflows/vercel-prod.yaml (a one-line change; comments unchanged):

  • The reusable rainix workflow's VERCEL_PROJECT_ID secret is now mapped from secrets.VERCEL_PROJECT_ID_V7 instead of secrets.VERCEL_PROJECT_ID_V6. There is no fallback to the V6 secret.
  • Still manual-only (workflow_dispatch) with the existing refs/heads/main guard. No triggers changed.

Not changed: vercel-preview.yaml (PR previews stay on the V6 project so preview checks keep passing), vercel-docs-*.yaml, rainix. No docs referenced the secret or this deploy.

Behaviour until the secret exists

VERCEL_PROJECT_ID_V7 does not exist yet, so it resolves to an empty string. rainix-vercel passes it to vercel pull alongside a non-empty VERCEL_ORG_ID; the Vercel CLI rejects an org ID without a project ID, so the job fails instead of deploying anywhere. The repo has no committed .vercel/ link it could fall back to.

Required before the first V7 production deploy

An admin must create the VERCEL_PROJECT_ID_V7 repository secret with the V7 Vercel project's ID.

Copy link
Copy Markdown
Collaborator Author

@rain-marvin review

@rain-marvin

rain-marvin Bot commented Nov 30, 2026

Copy link
Copy Markdown

🔎 Reviewing 65c7ca1, started by @findolor. The review will appear here when it's done.

@rain-marvin

rain-marvin Bot commented Nov 30, 2026

Copy link
Copy Markdown

⚠️ The review failed: LauncherError: launcher start: systemd-run: exit 1: Failed to find executable /bin/sh: No such file or directory. Nothing was submitted.

rain-marvin

Copy link
Copy Markdown
Collaborator Author

@rain-marvin review

@rain-marvin

rain-marvin Bot commented Nov 30, 2026

Copy link
Copy Markdown

🔎 Reviewing 65c7ca1, started by @findolor. The review will appear here when it's done.

@rain-marvin

rain-marvin Bot commented Nov 30, 2026

Copy link
Copy Markdown

⚠️ The review failed: LauncherError: launcher start: systemd-run: exit 1: Failed to find executable /bin/sh: No such file or directory. Nothing was submitted.

rain-marvin

@rain-marvin

rain-marvin Bot commented Nov 30, 2026

Copy link
Copy Markdown

🔎 Reviewing 65c7ca1, started by @findolor. The review will appear here when it's done.

@rain-marvin rain-marvin Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR changes one line in .github/workflows/vercel-prod.yaml. The manual production deploy from main now maps VERCEL_PROJECT_ID from secrets.VERCEL_PROJECT_ID_V7 instead of secrets.VERCEL_PROJECT_ID_V6. A run from main can therefore no longer overwrite v6.raindex.finance, which now deploys only from the v6 branch (#2984).

The claims in the description are correct. A required: true secret in a reusable workflow checks only that the caller passes the key, not that it has a value, so the missing secret becomes an empty string. The Vercel CLI then refuses a set VERCEL_ORG_ID without a VERCEL_PROJECT_ID in vercel pull, before it links, uploads, or deploys anything. The repo has no committed .vercel link to fall back on. The other Vercel paths are unchanged and are not affected: previews still go to the V6 project as preview deployments only, the docs workflows use their own project, and the v6 branch keeps its own production deploy. The approach is sound: it fails closed, adds no fallback, and enabling V7 needs only the one secret. One minor point: the file does not say that the failure is deliberate, and the failure only comes after the full webapp build. No blockers.

claude-opus-5-5 · high · 12 min

Comment thread .github/workflows/vercel-prod.yaml Resolved

This branch has not been deployed

No deployments
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