From c06a2549faba432e4ba1baf13c7daa8546e1e995 Mon Sep 17 00:00:00 2001 From: Elif Aslan Date: Mon, 25 Mar 2024 18:51:41 +0000 Subject: [PATCH] Fr release and AL2 supported versions update --- bin/update-dockerfiles.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/update-dockerfiles.sh b/bin/update-dockerfiles.sh index 929a563..3c988da 100755 --- a/bin/update-dockerfiles.sh +++ b/bin/update-dockerfiles.sh @@ -78,8 +78,10 @@ update_generic_linux() { ${SED} "s/${MAJOR_RELEASE}\.0\.[0-9]*,/${jdk_version},/g" README.md ${SED} "s/${MAJOR_RELEASE}\.0\.[0-9]*-al2/${jdk_version}-al2/g" README.md - if [ -d "./${MAJOR_RELEASE}/slim" ]; then + if [[ -f ./${MAJOR_RELEASE}/slim/al2/Dockerfile ]]; then ${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}-${corretto_version}/g" ./${MAJOR_RELEASE}/slim/al2/Dockerfile + fi + if [ -d "./${MAJOR_RELEASE}/slim" ]; then ${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}-${corretto_version}/g" ./${MAJOR_RELEASE}/slim/debian/Dockerfile ${SED} "s/ARG version=.*/ARG version=${jdk_version}.${jdk_build}.${corretto_version}/g" ./${MAJOR_RELEASE}/slim/alpine/Dockerfile ${SED} "s/${MAJOR_RELEASE}\.0\.[0-9]*-slim,/${jdk_version},/g" README.md