Added temurin exception for jre 16
This commit is contained in:
parent
b5b84c6dbd
commit
f0722cf631
14
build.py
14
build.py
@ -213,11 +213,15 @@ def build_version(manifest: VersionManifest, version_id: str, repository: str =
|
|||||||
f"No GraalVM image can be built for {version['id']} (Java {java_version['majorVersion']})")
|
f"No GraalVM image can be built for {version['id']} (Java {java_version['majorVersion']})")
|
||||||
|
|
||||||
print("# Build Temurin images")
|
print("# Build Temurin images")
|
||||||
build_args["DOCKER_IMAGE"] = f"eclipse-temurin:{java_version['majorVersion']}-jre"
|
if java_version['majorVersion'] != 16:
|
||||||
temurin_platforms: list[DockerPlatforms] = [
|
build_args["DOCKER_IMAGE"] = f"eclipse-temurin:{java_version['majorVersion']}-jre"
|
||||||
"linux/arm64", "linux/arm/v7", "linux/amd64", "linux/ppc64le"]
|
temurin_platforms: list[DockerPlatforms] = [
|
||||||
docker_buildx(
|
"linux/arm64", "linux/arm/v7", "linux/amd64", "linux/ppc64le"]
|
||||||
repository, [f"{version['id']}-temurin"], temurin_platforms, build_args=build_args)
|
docker_buildx(
|
||||||
|
repository, [f"{version['id']}-temurin"], temurin_platforms, build_args=build_args)
|
||||||
|
else:
|
||||||
|
print(
|
||||||
|
f"No Temurin image can be built for {version['id']} (Java {java_version['majorVersion']})")
|
||||||
|
|
||||||
print("# Build Zulu images")
|
print("# Build Zulu images")
|
||||||
build_args["DOCKER_IMAGE"] = f"azul/zulu-openjdk:{java_version['majorVersion']}-jre"
|
build_args["DOCKER_IMAGE"] = f"azul/zulu-openjdk:{java_version['majorVersion']}-jre"
|
||||||
|
Loading…
Reference in New Issue
Block a user