Skip to content

Commit

Permalink
Update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mrserb committed Sep 15, 2023
1 parent 7ca4109 commit b0a34b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/tag-generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
DEFAULT_ALPINE_VERSION = '3.18'
ALPINE_VERSIONS = ['3.15', '3.16', '3.17', '3.18']

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

def generate_tags(key, version):
Expand Down
8 changes: 7 additions & 1 deletion bin/update-dockerfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SED="sed -i"

sed --version 2>/dev/null || SED="sed -i.bkp"

LTS_VERSIONS=("8" "11" "17")
LTS_VERSIONS=("8" "11" "17" "21")

usage() {
echo "usage: update-dockerfiles.sh [--help]"
Expand Down Expand Up @@ -104,6 +104,7 @@ CORRETTO_8_GENERIC_LINUX=$(cat versions.json | jq -r '.["8"]' )
CORRETTO_11_GENERIC_LINUX=$(cat versions.json | jq -r '.["11"]' )
CORRETTO_17_GENERIC_LINUX=$(cat versions.json | jq -r '.["17"]' )
CORRETTO_20_GENERIC_LINUX=$(cat versions.json | jq -r '.["20"]' )
CORRETTO_21_GENERIC_LINUX=$(cat versions.json | jq -r '.["21"]' )

if [ ! -z "${CORRETTO_11_GENERIC_LINUX}" ]; then
update_generic_linux ${CORRETTO_11_GENERIC_LINUX} 11
Expand All @@ -117,6 +118,10 @@ if [ ! -z "${CORRETTO_20_GENERIC_LINUX}" ]; then
update_generic_linux ${CORRETTO_20_GENERIC_LINUX} 20
fi

if [ ! -z "${CORRETTO_21_GENERIC_LINUX}" ]; then
update_generic_linux ${CORRETTO_21_GENERIC_LINUX} 21
fi

if [ ! -z "${CORRETTO_8_GENERIC_LINUX}" ]; then
jdk_version=$(echo ${CORRETTO_8_GENERIC_LINUX} | cut -d'.' -f2)
jdk_build=$(echo ${CORRETTO_8_GENERIC_LINUX} | cut -d'.' -f3)
Expand All @@ -142,3 +147,4 @@ verify_update 8 ${jdk_version}
verify_update 11 ${CORRETTO_11_GENERIC_LINUX}
verify_update 17 ${CORRETTO_17_GENERIC_LINUX}
verify_update 20 ${CORRETTO_20_GENERIC_LINUX}
verify_update 21 ${CORRETTO_21_GENERIC_LINUX}

0 comments on commit b0a34b3

Please sign in to comment.