diff options
author | Cauan Cabral <cauanc@gmail.com> | 2018-09-27 09:22:49 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-09-27 09:22:49 +0000 |
commit | a104f3ecb28a2de5be426f64497b5cea7e95a2b3 (patch) | |
tree | 6e115f91de2aa0830c3036dc45e230987444e230 /doc/ci | |
parent | ad597a6aa8d5b31a7cf43028e7d60d33ac5d0d8c (diff) | |
download | gitlab-ce-a104f3ecb28a2de5be426f64497b5cea7e95a2b3.tar.gz |
Update using_docker_build.md
Diffstat (limited to 'doc/ci')
-rw-r--r-- | doc/ci/docker/using_docker_build.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/ci/docker/using_docker_build.md b/doc/ci/docker/using_docker_build.md index aa997d15b64..0b64c8caba7 100644 --- a/doc/ci/docker/using_docker_build.md +++ b/doc/ci/docker/using_docker_build.md @@ -314,8 +314,8 @@ build: stage: build script: - docker pull $CONTAINER_IMAGE:latest || true - - docker build --cache-from $CONTAINER_IMAGE:latest --tag $CONTAINER_IMAGE:$CI_BUILD_REF --tag $CONTAINER_IMAGE:latest . - - docker push $CONTAINER_IMAGE:$CI_BUILD_REF + - docker build --cache-from $CONTAINER_IMAGE:latest --tag $CONTAINER_IMAGE:$CI_COMMIT_SHA --tag $CONTAINER_IMAGE:latest . + - docker push $CONTAINER_IMAGE:$CI_COMMIT_SHA - docker push $CONTAINER_IMAGE:latest ``` |