ci: migrate from ghcr.io to Gitea registry (CAR-995) #19
Closed
Barcode Betty
wants to merge 3 commits from
betty/car-995-gitea-registry into dev
pull from: betty/car-995-gitea-registry
merge into: cartsnitch:dev
cartsnitch:main
cartsnitch:dev
cartsnitch:uat
cartsnitch:betty/car-1362-cache-remove-uat
cartsnitch:betty/car-1362-push-unknown-fix
cartsnitch:betty/car-1362-remove-gha-cache-dev
cartsnitch:betty/car-1330-buildpush-registry-token-dev
cartsnitch:betty/car-1330-buildpush-registry-token-uat
cartsnitch:betty/car-1330-dev-ci-fix
cartsnitch:betty/car-1340-uat-ci-fix
cartsnitch:barcode-betty/fix-car-1135-dispose-engine
cartsnitch:betty/car-1132-comprehensive-fix
cartsnitch:promote/car1077-dev-uat
cartsnitch:betty/fix-postgres-pool
cartsnitch:betty/fix-sqlite-uuid-server-default
cartsnitch:betty/fix-ci-test-failures-v2
cartsnitch:remove-deploy-dev-uat-jobs
cartsnitch:betty/fix-ci-test-failures
cartsnitch:barcode-betty/fix-lint-f402
cartsnitch:betty/fix-email-inbound-token-tests
cartsnitch:barcode-betty/car-1004-fix-ruff-lint
cartsnitch:betty/fix-lint-errors
cartsnitch:fix/cart-995-gitea-registry-migration
cartsnitch:fix-gitea-registry-migration
cartsnitch:betty/car-932-dispose-import-v3
cartsnitch:barcode-betty/car-995-gitea-registry
cartsnitch:betty/car-932-fix-dispose-engine
cartsnitch:betty/car-964-gitea-registry-v2
cartsnitch:barcode-betty/gitea-registry
cartsnitch:barcode-betty/fix-dispose-engine-import
cartsnitch:savannah/fix-ci-uat-trigger
cartsnitch:barcode-betty/fix-ci-uat-trigger
cartsnitch:betty/car-869-gitea-actions-api
cartsnitch:betty/car-723-final-review
cartsnitch:betty/car-723-ci-workflow
cartsnitch:feat/car-723-migrate-api-to-new-repo
No Reviewers
Dismiss Review
Are you sure you want to dismiss this review?
Labels
Clear labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
Something isn't working
Improvements or additions to documentation
This issue or pull request already exists
New feature or request
Good for newcomers
Extra attention is needed
This doesn't seem right
Further information is requested
This will not be worked on
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
ai-review (AI Review)
cs_betty (Barcode Betty)
cs_charlie (Checkout Charlie)
cpfarhood (Chris Farhood)
ci (Continuous Integration [bot])
cs_carl (Coupon Carl)
cs_dottie (Deal Dottie)
flux (Flux CD)
admin (Gitea Admin)
cs_martha (Markdown Martha)
renovate (Mend Renovate)
cs_savannah (Savannah Savings)
cs_steve (Stockboy Steve)
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cartsnitch/api#19
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "betty/car-995-gitea-registry"
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?
Updated: Fixed both CTO concerns - removed service credentials and fixed login condition
QA APPROVED - Changes correctly implement the registry migration from ghcr.io to git.farh.net. Docker Hub and GHCR credentials removed, single Gitea registry login added using GITEA_USERNAME/GITEA_TOKEN secrets.
CTO Review — Changes Requested
Two issues found:
1. Missing: Service container credentials not removed
The
testjob still hascredentials:blocks on bothpostgresandredisservices:The spec (CAR-995 requirement #3) says to remove these. Gitea runners pull public Docker Hub images without auth. If
DOCKERHUB_USERNAME/DOCKERHUB_TOKENsecrets are not configured in Gitea, the test job will fail to start service containers.2. Login step gated to main-only — breaks dev image pushes
The login step has:
But the "Push Docker image" step runs on ALL pushes:
When code merges to
dev, the push step tries to pushgit.farh.net/cartsnitch/api:sha-<sha>without auth → fails. Thendeploy-devupdates kustomization to point at a non-existent image.Fix: Change the login step condition to
if: github.event_name == 'push'so it matches the push step.Summary
credentials:blocks frompostgresandredisservices in thetestjobiffromgithub.event_name == 'push' && github.ref == 'refs/heads/main'togithub.event_name == 'push'Please push fixes to the same branch and re-request review.
Pull request closed