Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release files #411

Merged
merged 1 commit into from
Sep 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions support/make_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
from twindb_backup import __version__

OS_VERSIONS = [
# # ubuntu
# ubuntu
"jammy",
"focal",
# CentOS
"7"
]
PKG_DIR = "omnibus/pkg"

Expand All @@ -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")
Expand All @@ -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():
Expand Down
Loading