mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Use cache feature of docker buildx
This commit is contained in:
parent
2a83a1c05d
commit
7bc89c4f50
@ -125,9 +125,12 @@ def build_and_push_one_image(
|
||||
"w",
|
||||
) as pl:
|
||||
cmd = (
|
||||
"docker buildx build --builder default --build-arg "
|
||||
f"FROM_TAG={version_string} --tag {image_name}:{version_string} "
|
||||
f"--push {path}"
|
||||
"docker buildx build --builder default "
|
||||
f"--build-arg FROM_TAG={version_string} "
|
||||
f"--build-arg BUILDKIT_INLINE_CACHE=1 "
|
||||
f"--tag {image_name}:{version_string} "
|
||||
f"--cache-from type=registry,ref={image_name}:{version_string} "
|
||||
f"--progress plain --push {path}"
|
||||
)
|
||||
logging.info("Docker command to run: %s", cmd)
|
||||
retcode = subprocess.Popen(cmd, shell=True, stderr=pl, stdout=pl).wait()
|
||||
|
Loading…
Reference in New Issue
Block a user