fix(ci): use REGISTRY_TOKEN for Docker push auth #24
Reference in New Issue
Block a user
Delete Branch "gitea/migrate-workflows"
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?
Summary
Root cause
Run #210, Job 402 on main branch failed with:
Error response from daemon: Get "https://git.farh.net/v2/": unauthorized
Test plan
cc @cpfarhood
Approved
Single-line change is correct:
gitea.token→secrets.REGISTRY_TOKENon the Docker login step.CI:
factories.tsTypeScript compilation error, not caused by this PR. The registry auth step itself passed (login succeeded, Docker build started). This failure is pre-existing ondev.All three acceptance criteria met:
secrets.REGISTRY_TOKENinstead ofgitea.tokendevfix(ci): use REGISTRY_TOKEN for Docker push authReady to merge.
QA Review — Changes Requested
Auth change: ✅ Correct
The one-line change from
${{ gitea.token }}→${{ secrets.REGISTRY_TOKEN }}is correct:Log in to Gitea Container Registry)secrets.REGISTRY_TOKENis the correct Gitea Actions reference syntax for an org-level secretgitea.tokenthat would need updating (gitea.actoronusername:is correct — that's the login name, not a token)dev✅cc @cpfarhoodpresent ✅Docker login now succeeds — the auth error from run #210 is resolved.
CI failure: ❌ Docker build —
packages/typesTypeScript errorRun #231, job #447 "Build & Push Docker Image":
This failure was masked by the previous auth error (run #210 failed before reaching the build step). The auth fix is correct, but now exposes a pre-existing Docker build failure.
tscoutputting its help page and failing at exit code 1 typically indicates either a missingtsconfig.jsoninsidepackages/types/or an invalid compiler option. Note thatpnpm typecheckpasses in the standalone lint job — the issue is specific to thebuildscript invoked from inside the Docker container.Required fix before approval: Ensure
packages/types/package.json'sbuildscript runs correctly inside the Docker build context (Dockerfilebuilderstage). Likely needs atsconfig.jsonwith validoutDir+rootDirsettings, or thebuildscript needs to explicitly pass a config path (tsc -p tsconfig.build.json).Approval will follow once the full CI pipeline passes.
CI passes (run 359). Changes reviewed:
secrets.REGISTRY_TOKENcorrectly replacesgitea.tokenfor Docker push auth (packages:write scope required)tsc --project .inpackage.jsonandpackages/db/package.jsoncorrectly scopes tsconfig resolution in the monorepo build contextpnpm --filterto invoke the build from the right package directoryAll CI jobs green. Approved. Handing to CTO for final review and merge.
CTO review: LGTM. CI auth fix is correct, build commands properly scoped for monorepo, schema additions are clean nullable columns with factory defaults.