Skip to content

Commit

Permalink
Merge pull request #556 from lemeurherve/issue555-add-missing-conditi…
Browse files Browse the repository at this point in the history
…ons-to-jdk21-updatecli-manifest

chore(updatecli): correct type of conditions for `jdk21` manifest
  • Loading branch information
dduportal authored Oct 30, 2023
2 parents 304b7a2 + afb044c commit 16f8c37
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:
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 "getLatestJDK21Version" }}-jdk-alpine'
checkTemurinDebianDockerImages:
kind: dockerimage
name: Check if the container image "eclipse-temurin:<lastVersion>-jdk-focal" is available
disablesourceinput: true
spec:
architectures:
- amd64
- arm64
image: eclipse-temurin
tag: '{{ source "getLatestJDK21Version" }}-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 "getLatestJDK21Version" }}-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 "getLatestJDK21Version" }}-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 "getLatestJDK21Version" }}-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 "getLatestJDK21Version" }}-jdk-windowsservercore-ltsc2022'

targets:
setJDK21Version:
Expand Down

0 comments on commit 16f8c37

Please sign in to comment.