diff options
author | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-03-10 11:41:37 +0100 |
---|---|---|
committer | Z.J. van de Weg <git@zjvandeweg.nl> | 2017-03-10 11:41:37 +0100 |
commit | 548b607461d36903fce5f7a23becfa16b1ac838f (patch) | |
tree | 8fd405cf7a4c8432549b15f68fc88b11c74db76a /vendor/gitlab-ci-yml/Docker.gitlab-ci.yml | |
parent | 81ad61113112c49704cfe24b8e47479976422e60 (diff) | |
download | gitlab-ce-548b607461d36903fce5f7a23becfa16b1ac838f.tar.gz |
Update templates with new CI variableszj-update-templates
Diffstat (limited to 'vendor/gitlab-ci-yml/Docker.gitlab-ci.yml')
-rw-r--r-- | vendor/gitlab-ci-yml/Docker.gitlab-ci.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/gitlab-ci-yml/Docker.gitlab-ci.yml b/vendor/gitlab-ci-yml/Docker.gitlab-ci.yml index 8c590579934..40648bcd3de 100644 --- a/vendor/gitlab-ci-yml/Docker.gitlab-ci.yml +++ b/vendor/gitlab-ci-yml/Docker.gitlab-ci.yml @@ -7,7 +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 + - export IMAGE_TAG=$(echo -en $CI_COMMIT_REF_NAME | tr -c '[:alnum:]_.-' '-') + - docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY - docker build --pull -t "$CI_REGISTRY_IMAGE:$IMAGE_TAG" . - docker push "$CI_REGISTRY_IMAGE:$IMAGE_TAG" |