This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 322aad5 [CI] Use correct tag in Docker --cache-from (#9234)
322aad5 is described below
commit 322aad5b7cee4bcbeaac15de7bd7ac7cec675ee4
Author: Christopher Sidebottom <[email protected]>
AuthorDate: Sun Oct 10 15:39:56 2021 +0100
[CI] Use correct tag in Docker --cache-from (#9234)
When I didn't have `:latest` available I saw that my image wasn't being
re-used between runs.
---
docker/build.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docker/build.sh b/docker/build.sh
index 4e1a9b3..3ac7483 100755
--- a/docker/build.sh
+++ b/docker/build.sh
@@ -85,7 +85,7 @@ if [[ "$1" == "--cache-from" ]]; then
shift 1
cached_image="$1"
DOCKER_NO_CACHE_ARG=
- CI_DOCKER_BUILD_EXTRA_PARAMS+=("--cache-from tvm.$CONTAINER_TYPE")
+ CI_DOCKER_BUILD_EXTRA_PARAMS+=("--cache-from
tvm.$CONTAINER_TYPE:$DOCKER_IMAGE_TAG")
CI_DOCKER_BUILD_EXTRA_PARAMS+=("--cache-from $cached_image")
shift 1
fi