Skip to content

Commit

Permalink
remove al2 tag for unsupported versions (corretto#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
elifaslan1 authored Mar 25, 2024
1 parent 4185f5c commit 61d30e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/tag-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@
ALPINE_VERSIONS = ['3.16', '3.17', '3.18', '3.19']

LTS_VERSIONS = [ "8", "11", "17", "21"]

UNSUPPORTED_AL2_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}"

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"]
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:
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"]
else:
al2_tags = []
if key == '8':
al2_tags.append('latest')

Expand Down

0 comments on commit 61d30e2

Please sign in to comment.