diff options
author | James Lopez <james@jameslopez.es> | 2017-01-09 17:24:25 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-01-09 17:24:25 +0300 |
commit | 719294cbfe522f1706292dccb5f269503502b37d (patch) | |
tree | 42cefeae624c315e3c525042502b40a1e040debc /vendor/gitlab-ci-yml/Docker.gitlab-ci.yml | |
parent | 583deef209af5a2700701fb0933582a7b5680620 (diff) |
update templates
Diffstat (limited to 'vendor/gitlab-ci-yml/Docker.gitlab-ci.yml')
-rw-r--r-- | vendor/gitlab-ci-yml/Docker.gitlab-ci.yml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/gitlab-ci-yml/Docker.gitlab-ci.yml b/vendor/gitlab-ci-yml/Docker.gitlab-ci.yml index f3fa3949656..8c590579934 100644 --- a/vendor/gitlab-ci-yml/Docker.gitlab-ci.yml +++ b/vendor/gitlab-ci-yml/Docker.gitlab-ci.yml @@ -7,6 +7,7 @@ services: build: stage: build script: + - export IMAGE_TAG=$(echo -en $CI_BUILD_REF_NAME | tr -c '[:alnum:]_.-' '-') - docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY - - docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" . - - docker push "$CI_REGISTRY_IMAGE:$CI_BUILD_REF_NAME" + - docker build --pull -t "$CI_REGISTRY_IMAGE:$IMAGE_TAG" . + - docker push "$CI_REGISTRY_IMAGE:$IMAGE_TAG" |