Skip to content

Commit

Permalink
fix(updatecli): Remove unneeded comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
gounthar committed Nov 27, 2024
1 parent 66fa484 commit d5f6369
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
22 changes: 11 additions & 11 deletions updatecli/updatecli.d/jdk17.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ sources:
kind: temurin
name: Get the latest Adoptium JDK17 version via the API
spec:
featureversion: 17 # Feature version to fetch
featureversion: 17
transformers:
- trimprefix: "jdk-" # Remove the "jdk-" prefix from the version string
- trimprefix: "jdk-"

conditions:
checkTemurinAllReleases:
name: Check if the "<lastVersion>" is available for all platforms
kind: temurin
sourceid: lastVersion # Source to check the version from
sourceid: lastVersion
spec:
featureversion: 17 # Feature version to check
platforms: # List of platforms to check the version for
featureversion: 17
platforms:
- alpine-linux/x64
- linux/x64
- linux/aarch64
Expand All @@ -43,8 +43,8 @@ targets:
kind: hcl
transformers:
- replacer:
from: "+" # Character to replace
to: "_" # Replacement character
from: "+"
to: "_"
spec:
file: docker-bake.hcl
path: variable.JAVA17_VERSION.default
Expand All @@ -54,8 +54,8 @@ targets:
kind: dockerfile
transformers:
- replacer:
from: "+" # Character to replace
to: "_" # Replacement character
from: "+"
to: "_"
spec:
file: alpine/Dockerfile
instruction:
Expand All @@ -67,8 +67,8 @@ targets:
kind: dockerfile
transformers:
- replacer:
from: "+" # Character to replace
to: "_" # Replacement character
from: "+"
to: "_"
spec:
file: debian/Dockerfile
instruction:
Expand Down
10 changes: 5 additions & 5 deletions updatecli/updatecli.d/jdk21.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ sources:
kind: temurin
name: Get the latest Adoptium JDK21 version via the API
spec:
featureversion: 21 # Feature version to fetch
featureversion: 21
transformers:
- trimprefix: "jdk-" # Remove the "jdk-" prefix from the version string
- trimprefix: "jdk-"

# Architectures must match those of the targets in docker-bake.hcl
conditions:
checkTemurinAllReleases:
name: Check if the "<latestJDK21Version>" is available for all platforms
kind: temurin
sourceid: latestJDK21Version # Source to check the version from
sourceid: latestJDK21Version
spec:
featureversion: 21 # Feature version to check
platforms: # List of platforms to check the version for
featureversion: 21
platforms:
- alpine-linux/x64
- alpine-linux/aarch64
- linux/x64
Expand Down

0 comments on commit d5f6369

Please sign in to comment.