Deploy strictly from git, not a host checkout #7
Loading…
Add table
Add a link
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?
deploy.sh builds with
go build .from whatever working tree it runs in, so production depends on a specific host's checkout (servo). That's exactly how the real code ended up trapped off-git. Deploys should instead build from a fresh clone of the canonical git remote, pinned to a pushed ref, so what runs in production is always exactly what is committed and pushed.Scope: rewrite scripts/deploy.sh to clone origin at a given ref (default main) into a temp dir, build there, deploy, and clean up — refusing to deploy local/unpushed trees. No new infrastructure. Forgejo Actions CI/CD can build on this later.