diff options
author | Ruben Davila <rdavila84@gmail.com> | 2016-09-02 02:20:40 +0300 |
---|---|---|
committer | Ruben Davila <rdavila84@gmail.com> | 2016-09-02 02:20:40 +0300 |
commit | 0c36469538631ed7729d1faae9c610d3453869b8 (patch) | |
tree | 33399b2d0e37eecd575d08a45c4b0aa6503999cd /vendor/gitlab-ci-yml/Docker.gitlab-ci.yml | |
parent | 33a367e828c95ba7321d33361be67c68b1603bdd (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 | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vendor/gitlab-ci-yml/Docker.gitlab-ci.yml b/vendor/gitlab-ci-yml/Docker.gitlab-ci.yml index 396d3f1b042..f3fa3949656 100644 --- a/vendor/gitlab-ci-yml/Docker.gitlab-ci.yml +++ b/vendor/gitlab-ci-yml/Docker.gitlab-ci.yml @@ -1,7 +1,12 @@ # Official docker image. image: docker:latest +services: + - docker:dind + build: stage: build script: - - docker build -t test . + - 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" |