debian-mirror-gitlab/vendor/gitlab-ci-yml/Docker.gitlab-ci.yml
2016-09-29 09:46:39 +05:30

12 lines
309 B
YAML

# Official docker image.
image: docker:latest
services:
- docker:dind
build:
stage: build
script:
- 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"