-
Previous Value Current Value kaniko excutor
kaniko executor
-
Kaniko step is a simple wrap of Kaniko command. Have you specified registry logins in relevant executor (in administration menu)? If yes, you may run kaniko command deploying the image from your terminal to see if it works.
-
Previous Value Current Value Open
Closed
-
I just ran into same issue... Example project (https://docs.onedev.io/tutorials/cicd/build-docker-image) doesn't cover authentication at all. Build error is enigmatic.
Finding the section was problematic though finally found "Registry Logins" and added credentials but the build still fails (made sure it executed using executor). I tried credentials in the shell with
docker login -u <username>and then provided credentials and got "Login Succeeded". I left url as defautl: "Docker hub"How can I make it work?
EDIT: generated new token and it works...
-
At my side, as long as credential is specified correctly in registry logins of corresponding executor, the kaniko step works.
| Type |
Question
|
| Priority |
Normal
|
| Assignee | |
| Labels |
No labels
|
Hello, I am using kaniko executor to build image using Dockerfile. I am facing this 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 "us-central1-docker.pkg.dev/*//test-onedev:v1": creating push check transport for us-central1-docker.pkg.dev failed: GET https://us-central1-docker.pkg.dev/v2/token?scope=repository%3A%2F*****%2Ftest-onedev%3Apush%2Cpull&service=: DENIED: Permission "artifactregistry.repositories.uploadArtifacts" denied on resource "projects/*****/locations/us-central1/repositories/
Also can I get a tutorial or demo project link so I can view how kaniko step works with build and deploy?