ci: use $CI_COMMIT_REF_SLUG instead of $CI_COMMIT_BRANCH for docker image tag
This commit is contained in:
parent
58b017a59f
commit
5b204c6a75
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ build:
|
||||||
stage: build
|
stage: build
|
||||||
variables:
|
variables:
|
||||||
IMAGE: $CI_REGISTRY_IMAGE
|
IMAGE: $CI_REGISTRY_IMAGE
|
||||||
TAG: $CI_COMMIT_BRANCH-$CI_COMMIT_SHORT_SHA
|
TAG: $CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA
|
||||||
before_script:
|
before_script:
|
||||||
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
|
- echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
|
||||||
- docker info
|
- docker info
|
||||||
|
|
|
||||||
Reference in a new issue