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']})")
|
||||
|
||||
print("# Build Temurin images")
|
||||
build_args["DOCKER_IMAGE"] = f"eclipse-temurin:{java_version['majorVersion']}-jre"
|
||||
temurin_platforms: list[DockerPlatforms] = [
|
||||
"linux/arm64", "linux/arm/v7", "linux/amd64", "linux/ppc64le"]
|
||||
docker_buildx(
|
||||
repository, [f"{version['id']}-temurin"], temurin_platforms, build_args=build_args)
|
||||
if java_version['majorVersion'] != 16:
|
||||
build_args["DOCKER_IMAGE"] = f"eclipse-temurin:{java_version['majorVersion']}-jre"
|
||||
temurin_platforms: list[DockerPlatforms] = [
|
||||
"linux/arm64", "linux/arm/v7", "linux/amd64", "linux/ppc64le"]
|
||||
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")
|
||||
build_args["DOCKER_IMAGE"] = f"azul/zulu-openjdk:{java_version['majorVersion']}-jre"
|
||||
|
Loading…
Reference in New Issue
Block a user