Unverified Commit 70606880 by Leandro Nunes Committed by GitHub

Improve Docker cache reuse by pointing to the current version of the image, (#5466)

on top of another image to be used as reference.
parent 0a1e1601
...@@ -67,6 +67,7 @@ fi ...@@ -67,6 +67,7 @@ fi
if [[ "$1" == "--cache-from" ]]; then if [[ "$1" == "--cache-from" ]]; then
shift 1 shift 1
cached_image="$1" cached_image="$1"
CI_DOCKER_BUILD_EXTRA_PARAMS+=("--cache-from tvm.$CONTAINER_TYPE")
CI_DOCKER_BUILD_EXTRA_PARAMS+=("--cache-from $cached_image") CI_DOCKER_BUILD_EXTRA_PARAMS+=("--cache-from $cached_image")
shift 1 shift 1
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment