I'm trying to use Kaniko to build/push my docker images to GitLab Container Registry (GitLab self-managed 15.3.0, with docker runner): https://docs.gitlab.com/ee/ci/docker/using_kaniko.html#building-a-docker-image-with-kaniko
Command being executed is
$ /kaniko/executor --context "${CI_PROJECT_DIR}/DSPWeb" --dockerfile "${CI_PROJECT_DIR}/DSPWeb/Dockerfile" --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA}"
but it results in this error:
error checking push permissions -- make sure you entered the correct tag name, and that you are authenticated correctly, and try again: getting tag for destination: a repository name must be specified
It seems that the issue is that the predefined CI/CD GitLab build-in variable is empty/not resolving. Echo'ing the vars results in:
$ echo $CI_PROJECT_DIR
/builds/xxx/datashieldingplatform
$ echo $CI_REGISTRY_IMAGE
$ echo $CI_REGISTRY
$ echo $CI_COMMIT_SHA
67de133f333b57f8effed69a497adf256945eb15
CI_PROJECT_DIR & CI_COMMIT_SHA are resolving just fine.
So, might this be a permission issue?
Thank you