v30.62: dockerize + forgejo build pipeline #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/dockerize-forgejo-pipeline"
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?
Packages the game into a Docker image and adds a Forgejo Actions pipeline that publishes it to this instance's container registry.
What's in here
node:22-alpine+ python3. The SSR server re-runs the esbuild bundle at startup, so the runtime image needs node + devDependencies. Runs as non-rootnode, healthcheck on/api/players, port 5175.git.hl.c4.io/og_arist0tle/dark-spire:latest, bind-mounts./saves:/app/savesso player saves live on the host,restart: unless-stopped.npm testgate (needs git + full history fortest/v30-vs-current.mjs's worktree), then build + push:latestand:<short-sha>.SSR_GIT_*env override so images (which contain no.git) still stamp the real version in the footer chip. CI computes the values from the checkout and passes them as build args. Local git fallback unchanged.Before merging / to test
REGISTRY_USERNAMEandREGISTRY_TOKEN(package:write scope) under Settings → Actions.dockerlabel with access to a docker daemon.Verified locally
Image builds (333 MB); footer renders
v30.61 (6845004)inside the container; save POST→GET→/api/playersroundtrip lands in the mounted volume; healthcheck goes healthy; fullnpm testgreen;docker compose configvalidates.https://claude.ai/code/session_01RaLHHSp1qSk9L1oswRD8GJ