kaniko executor (OD-1840)
vipul opened 2 years ago

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?

  • vipul changed title 2 years ago
    Previous Value Current Value
    kaniko excutor
    kaniko executor
  • Robin Shen commented 2 years ago

    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.

  • Robin Shen changed state to 'Closed' 2 years ago
    Previous Value Current Value
    Open
    Closed
  • wojtek commented 2 years ago

    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...

  • Robin Shen commented 2 years ago

    At my side, as long as credential is specified correctly in registry logins of corresponding executor, the kaniko step works.

issue 1/1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (4)
Reference
OD-1840
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover