Skip to content
Snippets Groups Projects
Commit 9f54466f authored by Matthew K Defenderfer's avatar Matthew K Defenderfer
Browse files

add cache-from option to docker command

parent 4c733710
No related branches found
No related tags found
No related merge requests found
Pipeline #10941 passed with stage
in 17 minutes and 24 seconds
......@@ -16,7 +16,7 @@ docker-build:
# All branches are tagged with $DOCKER_IMAGE_NAME (defaults to commit ref slug)
# Default branch is also tagged with `latest`
script:
- docker build --pull -t "$DOCKER_IMAGE_NAME" .
- docker build --cache-from ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG} --pull -t "$DOCKER_IMAGE_NAME" .
- docker push "$DOCKER_IMAGE_NAME"
- |
if [[ "$CI_COMMIT_BRANCH" == "$CI_DEFAULT_BRANCH" ]]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment