-
-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Labels
Description
Actual behavior
Kaniko cannot login to Harbor the same way the old kaniko could - with credentials in /kaniko/.docker/config.json.
Instead I get an error:
error checking push permissions -- make sure you entered the correct tag name, and that you are authenticated correctly, and try again: checking push permission for "<my-harbor-url>/<my-project>/<my-image>:<image-tag>": POST https://<my-harbor-url>/<my-project>/<my-image>/blobs/uploads/: UNAUTHORIZED: unauthorized to access repository: <my-project>/<my-image>, action: push: unauthorized to access repository: <my-project>/<my-image>, action: push
This happens at the beginning of the build process.
Expected behavior
I expect it to work as it used to. This is a regression.
To Reproduce
I am running this in a gitlab pipeline, using the martizih/kaniko:v1.25.5-debug image as a job image. This is because I need a shell for the gitlab job.