Skip to content

Tag not getting picked up by CI_BUILD_TAG nor CI_COMMIT_TAG

I assumed that the runner will pickup the tag used in the commit, but it doesn't seem to be case. I see branch being picked up at CI_BUILD_REF_NAME but I see both CI_BUILD_TAG and CI_COMMIT_TAG empty even when I added a tag 1.0.0 in my commit. How I can make the runner aware of a commit tag?

$ echo $CI_BUILD_ID 124173

$ echo $CI_JOB_ID

$ echo $CI_BUILD_REF e1e2c64de3e7d7b7001415265133cf752375f865

$ echo $CI_COMMIT_SHA

$ echo $CI_BUILD_TAG

$ echo $CI_COMMIT_TAG

$ echo $CI_BUILD_REF_NAME develop

$ echo $CI_COMMIT_REF_NAME

$ echo $CI_BUILD_REF_SLUG develop

$ echo $CI_COMMIT_REF_SLUG

$ echo $CI_BUILD_NAME test

$ echo $CI_JOB_NAME

$ echo $CI_BUILD_STAGE test

$ echo $CI_JOB_STAGE

$ echo $CI_BUILD_TRIGGERED

$ echo $CI_PIPELINE_TRIGGERED

$ echo $CI_BUILD_MANUAL

$ echo $CI_JOB_MANUAL

$ echo $CI_BUILD_TOKEN xxxxxxxxxxxxxxxxxxxx

$ echo $CI_JOB_TOKEN