aboutsummaryrefslogtreecommitdiffstats
path: root/release/cibuild.py
diff options
context:
space:
mode:
Diffstat (limited to 'release/cibuild.py')
-rwxr-xr-xrelease/cibuild.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/release/cibuild.py b/release/cibuild.py
index 46066099..f2fc5470 100755
--- a/release/cibuild.py
+++ b/release/cibuild.py
@@ -474,7 +474,7 @@ def build_wininstaller(be: BuildEnviron): # pragma: no cover
IB_SETUP.with_suffix(".tmp"),
reporthook=report
)
- shutil.move(IB_SETUP.with_suffix(".tmp"), IB_SETUP)
+ shutil.move(str(IB_SETUP.with_suffix(".tmp")), str(IB_SETUP))
click.echo("Install InstallBuilder...")
subprocess.run([str(IB_SETUP), "--mode", "unattended", "--unattendedmodeui", "none"], check=True)
@@ -569,8 +569,11 @@ def upload(): # pragma: no cover
"-u", be.docker_username,
"-p", be.docker_password,
])
- subprocess.check_call(["docker", "push", be.docker_tag])
- subprocess.check_call(["docker", "push", be.docker_tag + "-ARMv7"])
+ for variant in ["", "-ARMv7"]:
+ subprocess.check_call(["docker", "push", be.docker_tag + variant])
+ if be.is_prod_release:
+ subprocess.check_call(["docker", "tag", be.docker_tag + variant, "mitmproxy/mitmproxy:latest" + variant])
+ subprocess.check_call(["docker", "push", "mitmproxy/mitmproxy:latest" + variant])
if __name__ == "__main__": # pragma: no cover