passing CI-JOB_TOKEN around
in the section called GitLab CI/CD Variables there is mention of a variable CI_JOB_TOKEN
. The description is Token used for authenticating with the GitLab Container Registry
and while that may all there is to is there are examples in other places where the user has reported bug against private_token
when redirecting and a fix being to add "PRIVATE-TOKEN: TOKEN"
albeit an incmplete example to the curl header. (to be fair in curl example they KINDA talked about a user generated private token)
So the question is ... how and which token do I pass from the .gitlab-ci.yml
into the docker --build-arg
so that I can use it in the "as builder" section of my Dockerfile?