docker: re-run buildx to push all architectures to `latest` tag

This commit is contained in:
Maximilian Hils 2021-07-19 11:37:04 +02:00
parent f7a6445ea7
commit f1f86f9a74
1 changed files with 8 additions and 2 deletions

View File

@ -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