kaniko
kaniko copied to clipboard
Authentication required: Building dockerfile present in private git (Gitlab) repository
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:
- Create a private Gitlab repository with dockerfile
- 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?