Commit 155b9523 authored by Adam Mercer's avatar Adam Mercer

use $CI_COMMIT_REF_NAME for container tag

parent 80a7b912
image: docker:latest
variables:
TAG: el7
stages:
- docker
......@@ -10,5 +7,5 @@ docker:build:
stage: docker
script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build --pull -t $CI_REGISTRY_IMAGE:$TAG .
- docker push $CI_REGISTRY_IMAGE:$TAG
- docker build --pull -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment