debian-mirror-gitlab/vendor/gitlab-ci-yml/Docker.gitlab-ci.yml

13 lines
309 B
YAML
Raw Normal View History

2016-06-22 15:30:34 +05:30
# Official docker image.
image: docker:latest
2016-09-29 09:46:39 +05:30
services:
- docker:dind
2016-06-22 15:30:34 +05:30
build:
stage: build
script:
2016-09-29 09:46:39 +05:30
- 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"