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

remove al2 tag for unsupported versions #203

Merged
merged 2 commits into from
Mar 26, 2024
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: 6 additions & 7 deletions bin/tag-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,25 @@
ALPINE_VERSIONS = ['3.16', '3.17', '3.18', '3.19']

LTS_VERSIONS = [ "8", "11", "17", "21"]
UNSUPPORTED_AL2_VERSIONS = [ "22" ]
FR_VERSIONS = [ "22" ]
def generate_tags(key, version):
update = version.split('.')[1] if (key == '8') else version.split('.')[2]
expanded_version = f"{key}u{update}" if (key == '8') else f"{key}.0.{update}"

al2023_tags = [f"{key}-al2023", f"{expanded_version}-al2023" ,f"{key}-al2023-jdk"]
al2023_generic_tags = [f"{key}-al2023-generic", f"{expanded_version}-al2023-generic", f"{key}-al2023-generic-jdk"]
if key not in UNSUPPORTED_AL2_VERSIONS:
if int(key) <= 21:
al2_tags = [f"{key}", f"{expanded_version}", f"{expanded_version}-al2", f"{key}-al2-full", f"{key}-al2-jdk", f"{key}-al2-generic", f"{expanded_version}-al2-generic", f"{key}-al2-generic-jdk"]
print("Tags: " + ", ".join(al2_tags) + "")
print("Architectures: amd64, arm64v8")
print(f"Directory: {key}/jdk/al2-generic\n")
else:
al2_tags = []
if key == '8':
al2_tags.append('latest')


print("Tags: " + ", ".join(al2_tags) + "")
print("Architectures: amd64, arm64v8")
print(f"Directory: {key}/jdk/al2-generic\n")

if key in LTS_VERSIONS:
if key in LTS_VERSIONS or key in FR_VERSIONS:
print("Tags: " + ", ".join(al2023_tags) + "")
print("Architectures: amd64, arm64v8")
print(f"Directory: {key}/jdk/al2023\n")
Expand Down
Loading