From f1f86f9a74c9635dc3e7d54250d9055aa809610d Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 19 Jul 2021 11:37:04 +0200 Subject: [PATCH] docker: re-run buildx to push all architectures to `latest` tag --- release/cibuild.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/release/cibuild.py b/release/cibuild.py index 0bbfdff26..0ad958dbf 100755 --- a/release/cibuild.py +++ b/release/cibuild.py @@ -541,8 +541,14 @@ def upload(): # pragma: no cover ], cwd=docker_build_dir) if be.is_prod_release: - subprocess.check_call(["docker", "tag", be.docker_tag, "mitmproxy/mitmproxy:latest"]) - subprocess.check_call(["docker", "push", "mitmproxy/mitmproxy:latest"]) + subprocess.check_call([ + "docker", "buildx", "build", + "--tag", "mitmproxy/mitmproxy:latest", + "--push", + "--platform", DOCKER_PLATFORMS, + "--build-arg", f"MITMPROXY_WHEEL={whl.name}", + "." + ], cwd=docker_build_dir) if __name__ == "__main__": # pragma: no cover