Skip to content

Podman image build fails to push

The change from !201 (merged) fails to push the new podman image to the container registry:

$ crane copy "$BUILD_IMAGE_NAME_PODMAN" "${CI_REGISTRY_IMAGE}-podman:${CI_COMMIT_TAG}"
2025/04/24 23:11:34 Copying from registry.gitlab.com/gitlab-org/cluster-integration/auto-build-image/v4-11-0-podman:991f6a84cd64787f4db38e2d7e54a84ba2186e0a to registry.gitlab.com/gitlab-org/cluster-integration/auto-build-image-podman:v4.11.0
Error: HEAD https://registry.gitlab.com/v2/gitlab-org/cluster-integration/auto-build-image-podman/manifests/v4.11.0: unexpected status code 401 Unauthorized (HEAD responses have no body, use GET for details)

The issue seems to be that the images want to be pushed to -podman, which is not under the repos namespace. My proposal would be to fix it by pushing to /podman instead:

-registry.gitlab.com/gitlab-org/cluster-integration/auto-build-image-podman:v4.11.0
+registry.gitlab.com/gitlab-org/cluster-integration/auto-build-image/podman:v4.11.0