$ docker login -u gitlab-ci-token -p "$CI_JOB_TOKEN" "$CI_REGISTRY" WARNING! Using --password via the CLI is insecure. Use --password-stdin. /bin/sh: Login Succeeded $ docker build -t "$CI_REGISTRY_IMAGE:latest" -t "$CI_REGISTRY_IMAGE:$(CI_COMMIT_REF_NAME)" -t "$CI_REGISTRY_IMAGE:$(CI_COMMIT_SHA)" . eval: line 54: CI_COMMIT_REF_NAME: not found /bin/sh: eval: line 54: CI_COMMIT_SHA: not found invalid argument "git.panter.ch:5001/open-source/kubernetes-deploy:" for "-t, --tag" flag: invalid reference format See 'docker build --help'. ERROR: Job failed: error executing remote command: command terminated with non-zero exit code: Error executing in Docker Container: 125