gitlab-org--gitlab-foss/vendor/gitlab-ci-yml/Docker.gitlab-ci.yml
2016-09-01 18:20:40 -05:00

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"