Unable to push image using Tekton pipeline

Viewed 27

I am trying to clone a simple, private, repo in GitLab, build an image and push it to the repo's container registry using a Tekton pipeline. I have configured a service account that refers to a secret that uses basic auth. The clone task works fine, but the Kaniko build/push task continues to fail with an authentication issue (error checking push permissions -- make sure you entered the correct tag name, and that you are authenticated correctly, and try again). My initial assumption was that I could use the same sa/secret for both git and docker. I have tried several permutations including separate secrets with tekton annotations, a separate sa for the build/push task and other types of auth such as dockerconfigjson and token. All with no luck. With this such a fundamental pair of tasks, I'm surprised I can't find an easy answer.

0 Answers
Related