kaniko icon indicating copy to clipboard operation
kaniko copied to clipboard

Authentication required: Building dockerfile present in private git (Gitlab) repository

Open codezart opened this issue 3 years ago • 0 comments

Actual behavior I have a private Gitlab repository containing a dockerfile I went through this documentation to build an image.

Passed the personal access TOKEN and my branch git://[email protected]/acme/myproject.git#refs/heads/mybranch

When the container starts it gives me Error: error resolving source context: authentication required

Expected behavior It should start building the dockerfile

To Reproduce Steps to reproduce the behavior:

  1. Create a private Gitlab repository with dockerfile
  2. use the following method to build image: https://github.com/GoogleContainerTools/kaniko#using-private-git-repository Additional Information Dockerfile build is not even starting due to authentication error

Questions:
Does this method work for Gitlab? If no, how do I proceed with my situation?

codezart avatar Jun 12 '22 13:06 codezart