fix(ci): build-oci-image pushes to the private org registry #109
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/build-oci-image-private-package-org"
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
Same gap PR #107 closed for
publish-release.yml, on a workflow that should have been swept up in that same pass:build-oci-image.ymlwas deriving the registry owner fromGITHUB_REPOSITORY_OWNERand authenticating withsecrets.FORGEJO_PAT, neither of which is the org-standard pair. The last run pushed the OCI image todev.a8n.run/${repo_owner}/lets-chat:latestinstead of the shared a8n-tools private registry namespace consumers actually pull from.Changes
.forgejo/workflows/build-oci-image.yml:REGISTRY_OWNER: ${{ vars.A8N_TOOLS_PRIVATE_PACKAGE_OWNER }}to the job env.REGISTRY_PASSWORD: ${{ secrets.FORGEJO_PAT }}->${{ secrets.A8N_TOOLS_PRIVATE_PACKAGE_PAT }}.REGISTRY_OWNERdirectly instead of lowercasingGITHUB_REPOSITORY_OWNER.IMAGE_REGISTRYkeeps the same shape,${REGISTRY_PROVIDER}/${owner}, so the build/push step is untouched.Audit
Grepped every workflow in
.forgejo/workflows/forFORGEJO_PAT/GITHUB_REPOSITORY_OWNER/ registry secrets:build-oci-image.yml-> on the old pattern, fixed here.publish-release.yml-> already on the new pattern from #107.build-desktop-linux.yml,build-desktop-windows.yml-> no registry push. They upload the binary to the workflow run viaupload-artifactfor CI inspection only; the actual package push happens inpublish-release.ymlonv*tags.check.yml-> no registry push, just runsjust check.Test plan
backup/.forgejo/workflows/build-oci-image.yml,eform/.forgejo/workflows/build-oci-image.yml, etc.mainpush orv*tag has the OCI image appear atdev.a8n.run/${vars.A8N_TOOLS_PRIVATE_PACKAGE_OWNER}/lets-chat:<tags>and consumers candocker pullfrom there.