fix: use env vars for docker registry credentials #2

Merged
rock merged 3 commits from fix/registry-login-env into main 2026-09-07 06:50:50 +00:00
3 Commits
Author SHA1 Message Date
Admin Bot 67a1a01b4e fix: use env vars for docker registry credentials
CI / Test (pull_request) Successful in 1m36s
CI / Build & Push Image (pull_request) Skipped
Pass FORGEJO_REGISTRY_USER and FORGEJO_REGISTRY_TOKEN via environment variables.
Image: forgejo.riotpiao.com/rock/api-gateway (API gateway service)
2026-09-06 23:49:29 -07:00
Admin Bot 152e4259ae fix: validate registry credentials before docker login
Add credential validation step to catch missing secrets early with clear error message.
Use direct secret injection (not env vars) for better security.
Isolate docker config to /tmp/docker-config.
2026-09-06 23:34:58 -07:00
Admin Bot 5c30fd4fb7 fix: standardize CI workflow to unified pattern
CI / Test (pull_request) Successful in 3m23s
CI / Build & Push Image (pull_request) Skipped
Reference: riotpiao.com action run 496/707

Unified structure:
- test job: all branches + PRs
- build-push job: main push only, depends on test
- Install Node.js before checkout
- Install docker only in build-push
- Proper secrets and env handling
- Docker login + build + push + prune
2026-09-06 23:18:44 -07:00