From c047e12c39ee7320d2b48de987f5a89504da8bd2 Mon Sep 17 00:00:00 2001 From: Elif Aslan Date: Mon, 25 Mar 2024 18:30:45 +0000 Subject: [PATCH] Fr release and AL2 supported versions update --- bin/update-dockerfiles.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bin/update-dockerfiles.sh b/bin/update-dockerfiles.sh index 71127c4..8da3ef1 100755 --- a/bin/update-dockerfiles.sh +++ b/bin/update-dockerfiles.sh @@ -4,9 +4,6 @@ SED="sed -i" sed --version 2>/dev/null || SED="sed -i.bkp" -LTS_VERSIONS=("8" "11" "17" "21") -FR_VERSIONS=("22") - usage() { echo "usage: update-dockerfiles.sh [--help]" echo "" @@ -56,12 +53,17 @@ update_generic_linux() { if [[ -f ./${MAJOR_RELEASE}/jdk/al2-generic/Dockerfile ]]; then ${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}-${corretto_version}/g" ./${MAJOR_RELEASE}/jdk/al2-generic/Dockerfile fi - if [[ "${LTS_VERSIONS[*]}" =~ ${MAJOR_RELEASE} || "${FR_VERSIONS[*]}" =~ ${MAJOR_RELEASE} ]]; then - ${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}-${corretto_version}/g" ./${MAJOR_RELEASE}/jdk/al2023/Dockerfile + if [[ -f ./${MAJOR_RELEASE}/jdk/al2023-generic/Dockerfile ]]; then + ${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}-${corretto_version}/g" ./${MAJOR_RELEASE}/jdk/al2023-generic/Dockerfile + fi + if [[ -f ./${MAJOR_RELEASE}/headful/al2023-generic/Dockerfile ]]; then ${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}-${corretto_version}/g" ./${MAJOR_RELEASE}/headful/al2023/Dockerfile + fi + if [[ -f ./${MAJOR_RELEASE}/headless/al2023-generic/Dockerfile ]]; then ${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}-${corretto_version}/g" ./${MAJOR_RELEASE}/headless/al2023/Dockerfile fi + ${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}-${corretto_version}/g" ./${MAJOR_RELEASE}/jdk/debian/Dockerfile ADDITIONAL_IMAGES="jdk jre headful headless"