Skip to content

Commit b42ffd9

Browse files
committed
CircleCI updates
1 parent 73f0e49 commit b42ffd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javaUpdatesOne.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ if [[ -n $latestJavaLTS ]]; then
5454
# Circle CI File
5555
f=".circleci/config.yml"
5656
if [ -f $f ]; then
57-
targetImageUrl=$(curl -s https://api.adoptopenjdk.net/v3/assets/latest/"$latestJavaLTS"/hotspot | jq -r '.[0].binary.package.link')
57+
targetImageUrl=$(curl -s curl -s "https://api.adoptium.net/v3/assets/latest/$latestJavaLTS/hotspot" | jq -r '[.[] | select(.binary.image_type == "jdk" and .binary.os == "linux" and .binary.architecture == "x64")][0].binary.package.link')
5858
targetImageUrl=${targetImageUrl//\//\\/}
5959
sed -E 's/-\s*image:\s*maven.*/- image: '"$targetImage"'/g' "$f" > "$f""01"
6060
mv "$f""01" "$f"

0 commit comments

Comments
 (0)