diff options
author | Mark Pundsack <markpundsack@users.noreply.github.com> | 2016-06-08 14:40:56 -0700 |
---|---|---|
committer | Mark Pundsack <markpundsack@users.noreply.github.com> | 2016-06-13 22:06:13 -0700 |
commit | 35ce04ef2e02e5b176c57567f2ddf82871af7639 (patch) | |
tree | e60921d75e74c73595ed902cdb86051a66abd7ea /doc/container_registry | |
parent | 6f834ecaa94a1da230c933c981b33634d937d8dd (diff) | |
download | gitlab-ce-35ce04ef2e02e5b176c57567f2ddf82871af7639.tar.gz |
Move registry CI example to CI docs
Diffstat (limited to 'doc/container_registry')
-rw-r--r-- | doc/container_registry/README.md | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/doc/container_registry/README.md b/doc/container_registry/README.md index a7dac54a1ad..1b465434498 100644 --- a/doc/container_registry/README.md +++ b/doc/container_registry/README.md @@ -79,27 +79,8 @@ delete them. This feature requires GitLab 8.8 and GitLab Runner 1.2. Make sure that your GitLab Runner is configured to allow building docker images. -You have to check the [Using Docker Build documentation](../../ci/docker/using_docker_build.md). - -You can use [docker:dind](https://hub.docker.com/_/docker/) to build your images, -and this is how your `.gitlab-ci.yml` should look: - -``` - build_image: - image: docker:git - services: - - docker:dind - stage: build - script: - - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.example.com - - docker build -t registry.example.com/group/project:latest . - - docker push registry.example.com/group/project:latest -``` - -You have to use the credentials of the special `gitlab-ci-token` user with its -password stored in `$CI_BUILD_TOKEN` in order to push to the Registry connected -to your project. This allows you to automate building and deployment of your -Docker images. +You have to check the [Using Docker Build documentation](../ci/docker/using_docker_build.md). +Then see the CI documentation on [Using the GitLab Container Registry](../ci/docker/using_docker_build.md#using-the-gitlab-container-registry). ## Limitations |