1
0
forked from IPKM/nmreval

fixed versions in upload script

This commit is contained in:
Markus Rosenstihl 2022-11-23 09:40:31 +01:00
parent f44eb3b58d
commit e35287e025

View File

@ -83,10 +83,11 @@ if __name__ == "__main__":
secret = os.environ["s3_secret"]
host = "mirror.infra.pkm:9000"
bucket = "nmreval-appimage"
appimage_version = yaml.safe_load(open("AppImageBuilder.yml"))["AppDir"]["app_info"]["version"]
filenames = [f"NMReval-{appimage_version}-x86_64.AppImage",
f"NMReval-{appimage_version}-x86_64.AppImage.zsync",
]
if "GO_PIPELINE_LABEL" in os.environ:
appimage_version = os.environ["GO_PIPELINE_LABEL"]
else:
appimage_version = yaml.safe_load(open("AppImageBuilder.yml"))["AppDir"]["app_info"]["version"]
print(f"Uploading NMReval-{appimage_version}-x86_64.AppImage and .zsync")
upload(key, secret, host, bucket,
f"NMReval-{appimage_version}-x86_64.AppImage")
upload(key, secret, host, bucket,