Skip to content

Commit

Permalink
fix(updatecli): correct type of conditions for jdk21 manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
lemeurherve committed Oct 29, 2023
1 parent 3c099dd commit 83c4efd
Showing 1 changed file with 52 additions and 7 deletions.
59 changes: 52 additions & 7 deletions updatecli/updatecli.d/jdk21.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,60 @@ sources:
from: "+"
to: "_"

# Architectures must match those of the targets in docker-bake.hcl
conditions:
checkIfReleaseIsAvailable:
kind: shell
checkTemurinAlpineDockerImage:
kind: dockerimage
name: Check if the container image "eclipse-temurin:<lastVersion>-jdk-alpine" is available
disablesourceinput: true
spec:
architectures:
- amd64
- arm64
image: eclipse-temurin
tag: '{{source "lastVersion" }}-jdk-alpine'
checkTemurinDebianDockerImages:
kind: dockerimage
name: Check if the container image "eclipse-temurin:<lastVersion>-jdk-focal" is available
disablesourceinput: true
spec:
command: bash ./updatecli/scripts/check-jdk.sh # source input value passed as argument
transformers:
- replacer:
from: "_"
to: "+"
architectures:
- amd64
- arm64
image: eclipse-temurin
tag: '{{source "lastVersion" }}-jdk-focal'
checkTemurinNanoserver2019DockerImage:
kind: dockerimage
name: Check if the container image "eclipse-temurin:<lastVersion>-jdk-nanoserver-1809" is available
disablesourceinput: true
spec:
architecture: amd64
image: eclipse-temurin
tag: '{{source "lastVersion" }}-jdk-nanoserver-1809'
checkTemurinWindowsCore2019DockerImage:
kind: dockerimage
name: Check if the container image "eclipse-temurin:<lastVersion>-jdk-windowsservercore-1809" is available
disablesourceinput: true
spec:
architecture: amd64
image: eclipse-temurin
tag: '{{source "lastVersion" }}-jdk-windowsservercore-1809'
checkTemurinNanoserver2022DockerImage:
kind: dockerimage
name: Check if the container image "eclipse-temurin:<lastVersion>-jdk-nanoserver-ltsc2022" is available
disablesourceinput: true
spec:
architecture: amd64
image: eclipse-temurin
tag: '{{source "lastVersion" }}-jdk-nanoserver-ltsc2022'
checkTemurinWindowsCore2022DockerImage:
kind: dockerimage
name: Check if the container image "eclipse-temurin:<lastVersion>-jdk-windowsservercore-ltsc2022" is available
disablesourceinput: true
spec:
architecture: amd64
image: eclipse-temurin
tag: '{{source "lastVersion" }}-jdk-windowsservercore-ltsc2022'

targets:
setJDK21Version:
Expand Down

0 comments on commit 83c4efd

Please sign in to comment.