Build on Gitea, push to the Gitea registry #1

Merged
ffaerber merged 1 commits from ci/gitea-actions into main 2026-09-15 11:33:20 +02:00
Owner

Moves the image build off GitHub Actions and onto the homelab runner, pushing to this Gitea's container registry as an immutable short-SHA tag plus :latest.

Build-only: the GitHub workflow also SSHed into the Hostinger VPS and redeployed it on every push to main. Deploys now happen the way the rest of the homelab ships — a PR bumping the tag in ffaerber/homelab.

.github/workflows is removed from this copy so Gitea does not also try to run it (it would log in to ghcr with a Gitea token and SSH to a host whose secrets are not here). The GitHub repository is untouched.

Moves the image build off GitHub Actions and onto the homelab runner, pushing to this Gitea's container registry as an immutable short-SHA tag plus `:latest`. Build-only: the GitHub workflow also SSHed into the Hostinger VPS and redeployed it on every push to `main`. Deploys now happen the way the rest of the homelab ships — a PR bumping the tag in `ffaerber/homelab`. `.github/workflows` is removed from this copy so Gitea does not also try to run it (it would log in to ghcr with a Gitea token and SSH to a host whose secrets are not here). The GitHub repository is untouched.
ffaerber added 1 commit 2026-09-15 11:30:38 +02:00
build on Gitea, against the homelab API
Docker / build (pull_request) Successful in 23s
67b00b8848
Same move as the gateway repo -- build on the homelab runner, push to this
Gitea's registry, no deploy step -- with one difference that matters more here
than anywhere else.

Vite inlines import.meta.env at BUILD time. VITE_API_URL is therefore baked into
the bundle, and the GitHub build bakes https://api.t4t-gateway.com. Running that
image on the homelab would put a UI at t4tgw.ffaerber.duckdns.org that talks to
the VPS: a test signup would create a real account on production, and the two
instances would look identical while being the same instance. This build bakes
the homelab API, which is what makes running them side by side mean anything.

The app also falls back to the production URL when the variable is missing
(app/routes/*.tsx), so an unset build arg fails the same way silently. It is set
explicitly in the workflow env rather than left to a default.

.github/workflows is removed from this copy so Gitea does not try to run the
GitHub one; the GitHub repository keeps its own.
ffaerber merged commit 7534f34cfc into main 2026-09-15 11:33:20 +02:00
ffaerber deleted branch ci/gitea-actions 2026-09-15 11:33:20 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: token-for-token/hosted-gateway-frontend#1