I wanted to define variable for docker image name using branch name as tag, as defined in documentation https://docs.gitlab.com/ce/ci/docker/using_docker_build.html :
variables:
CONTAINER_NAME: myimage:$CI_COMMIT_REF_NAME
CONTAINER_PUSH_NAME: myrepo:5000/$CONTAINER_NAME
however, when I output CONTAINER_PUSH_NAME, I get:
myrepo:5000/myimage:$CI_COMMIT_REF_NAME
It means, that my own variables are expanded, but the predefined ones not, although they are available in script execution time, because when I echo $CI_COMMIT_REF_NAME, I get branch name, as expected.
Is it possible to use predefined variables as a part of my defined variables, or the documentation is misleading?
