A multi-stage kaniko build replaces / with the last stage's root filesystem, which deletes $HOME/.docker/config.json. Kaniko then resolves credentials at push time without them, asks the registry for an anonymous token and Gitea rejects the upload with 401 reqPackageAccess. Keep the Docker credential store in /kaniko/.docker for the whole image job via DOCKER_CONFIG and let docker login write there directly. Restore the image job and document that CI publishes images again.