Commit Graph
16 Commits
Author SHA1 Message Date
rockandAdmin Bot 736c0d7724 fix: use env vars for docker registry credentials (#2)
CI / Test (push) Successful in 1m51s
CI / Build & Push Image (push) Failing after 1m6s
Fix registry login by passing FORGEJO_REGISTRY_USER and FORGEJO_REGISTRY_TOKEN via environment variables instead of direct secret interpolation.

Uses the proven pattern from riotpiao.com reference commit.

This prevents credentials from being exposed in logs or shell history while keeping the standard docker login approach.

After merge + org-level secrets configured:
- All repos inherit FORGEJO_REGISTRY_USER and FORGEJO_REGISTRY_TOKEN
- CI validates credentials exist before docker login
- Image pushed to registry on main push

---------

Co-authored-by: Admin Bot <[email protected]>
Reviewed-on: #2
2026-09-07 06:50:48 +00:00
Admin Bot 3f89511bdd fix: remove container override, install deps in workflow steps
CI / Vet, test, build (push) Successful in 3m46s
CI / Build and push image (push) Failing after 39s
Container override breaks docker socket access to dind sidecar.

Changes:
- Remove 'container: image: golang:1.26-bookworm'
- Install Node.js before checkout (required by actions runtime)
- Install docker.io in build step (required for docker build/push)

Now works with shared docker socket via dind sidecar.
2026-09-06 22:49:59 -07:00
Admin Bot df553cc70d ci: fix docker dind access, remove container override
CI / Vet, test, build (push) Successful in 3m33s
CI / Build and push image (push) Failing after 40s
Problem: Push job used docker:27-cli override with explicit dind cert
mounting, but runner base changed to code.forgejo.org/forgejo/runner:6.
Alpine container couldn't access Debian runner's dind socket paths.

Fix:
- Remove container override, run on golang runner natively
- Install docker.io directly in push step (apt-get)
- Add docker image prune post-action to cleanup

This pattern matches riotpiao.com CI and works with current runner setup.
2026-09-06 05:55:54 -07:00
Admin Bot 9c5fb0ce84 feat: load service adapters from ConfigMap, remove k8s API dependency
CI / Vet, test, build (push) Canceled after 2m10s
CI / Build and push image (push) Canceled after 0s
Adapters defined in config.yaml alongside routes and models.
Parsed by existing config loader, populated into registry at startup.
Removed: client-go deps, REST loader, informer, nginx proxy,
CiliumNetworkPolicy, apis/gateway/v1/ (duplicate types).
Kept: merged CI pipeline, imagePullPolicy Always, CA certs in Dockerfile.
2026-08-26 16:39:30 -07:00
Story Crater Bot abcc6dd4a9 ci(main): tag both SHA and latest during build, push both in one step
Build and push / Build and push image (push) Successful in 28s
Build / Build and push image (push) Successful in 27s
CI / Test, vet, build (push) Successful in 2m18s
2026-08-21 21:00:36 -07:00
Story Crater Bot 9740334d24 ci(main): push latest tag on main commits, auto-deploy via kustomization
Build and push / Build and push image (push) Successful in 29s
Build / Build and push image (push) Successful in 27s
CI / Test, vet, build (push) Successful in 2m17s
2026-08-21 20:56:47 -07:00
Story Crater Bot 0f2cd7565a ci(main): trigger image builds on main branch commits
Build and push / Build and push image (push) Successful in 28s
Build / Build and push image (push) Successful in 26s
CI / Test, vet, build (push) Successful in 2m17s
2026-08-21 20:55:27 -07:00
Story Crater Bot 0fe9de6fbd fix(ci): use universal REGISTRY_PAT secret for Forgejo registry auth
Build (prod) / Build and push image (push) Successful in 34s
2026-08-21 20:52:32 -07:00
Story Crater Bot afcc28fca0 ci(prod): add prod build workflow for image push to Forgejo registry
Build (prod) / Build and push image (push) Failing after 11s
2026-08-21 20:47:02 -07:00
Story Crater Bot b6767e247c fix(deps,ci): update module path to forgejo.riotpiao.com/rock/homelab-frontend, switch to GITHUB_TOKEN
Build / Build and push image (push) Failing after 12s
CI / Test, vet, build (push) Successful in 2m18s
2026-08-21 20:46:45 -07:00
Story Crater Bot 0aaf4116f1 fix(ci): target the golang runner, generic docker runner retired
Build / Build and push image (push) Successful in 1m20s
CI / Test, vet, build (push) Successful in 2m17s
2026-08-21 16:53:05 -07:00
Story Crater Bot 3d63df9ba8 fix(ci): drop ineffective --network host option, runner sets it globally now
Build / Build and push image (push) Failing after 14s
CI / Test, vet, build (push) Failing after 12m47s
2026-08-21 16:14:16 -07:00
Story Crater Bot 7b265b8338 fix(ci): mount /docker-certs/client into the build job container
Build / Build and push image (push) Failing after 13s
CI / Test, vet, build (push) Successful in 1m49s
2026-08-21 15:55:23 -07:00
Story Crater Bot 7ebbf2bd03 fix: install node in job containers so actions/checkout can exec
Build / Build and push image (push) Failing after 15s
CI / Test, vet, build (push) Successful in 1m45s
actions/checkout@v4 is a JS action; Forgejo Actions runs it via node, which
neither golang:1.25-bookworm nor docker:27-cli ship. Every run since the
.gitea/workflows move has failed identically: 'exec: node: executable file
not found in $PATH' during the checkout step, before any real job step ran.

Verified locally against both exact images before pushing:
- golang:1.25-bookworm: apt-get install nodejs ca-certificates git -> node
  v18.20.4, git 2.39.5.
- docker:27-cli: apk add nodejs git -> node v22.23.2, git 2.47.2, and
  actions/checkout's dist/index.js actually executes afterward (confirmed
  by invoking it directly) instead of failing on a missing binary.
- The Dockerfile itself builds clean end to end and the resulting image
  serves /healthz, so checkout was the only remaining blocker in the path.
2026-08-21 13:49:24 -07:00
Story Crater Bot dac1a5da4b fix: move workflows from .forgejo/workflows to .gitea/workflows
Build / Build and push image (push) Failing after 30s
CI / Test, vet, build (push) Failing after 29s
.forgejo/workflows/*.yaml never creates an action_run on push on this
Forgejo instance (1.27.0) -- confirmed directly in the action_run table
across multiple probe pushes. .gitea/workflows fires immediately with an
identical spec. This is why build.yaml never once executed.
2026-08-21 11:36:34 -07:00
Story Crater Bot e71034c3ef test: probe .gitea/workflows path
ProbeGitea / noop (push) Successful in 59s
2026-08-21 11:34:17 -07:00