From 34f5074e3ad54645733f17cbe82ed8ea6cb1ac1d Mon Sep 17 00:00:00 2001 From: Oleksandr Kuzminskyi Date: Fri, 15 Sep 2023 10:50:28 -0700 Subject: [PATCH] Fix release files --- support/make_release.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/support/make_release.py b/support/make_release.py index 9ba2f51a..a7eba808 100644 --- a/support/make_release.py +++ b/support/make_release.py @@ -7,9 +7,11 @@ from twindb_backup import __version__ OS_VERSIONS = [ - # # ubuntu + # ubuntu "jammy", "focal", + # CentOS + "7" ] PKG_DIR = "omnibus/pkg" @@ -22,18 +24,22 @@ "flavor": "Ubuntu", "name": "Ubuntu focal" }, + "7": { + "flavor": "CentOS", + "name": "CentOS 7" + }, } def main(): my_env = environ + session = boto3.Session(profile_name="twindb") + client = session.client("s3") for os in OS_VERSIONS: run(["make", "clean"]) my_env["OS_VERSION"] = os run(["make", "package"], env=my_env, check=True) - session = boto3.Session(profile_name="twindb") - client = session.client("s3") for fi_name in listdir(PKG_DIR): if ( fi_name.endswith(".rpm") @@ -47,7 +53,6 @@ def main(): ) print(f"https://twindb-release.s3.amazonaws.com/{key}") - client = boto3.client("s3") for flavor in sorted((set([x["flavor"] for x in OS_DETAILS.values()]))): print("## %s" % flavor) for os, details in OS_DETAILS.items():