We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73f0e49 commit b42ffd9Copy full SHA for b42ffd9
javaUpdatesOne.sh
@@ -54,7 +54,7 @@ if [[ -n $latestJavaLTS ]]; then
54
# Circle CI File
55
f=".circleci/config.yml"
56
if [ -f $f ]; then
57
- targetImageUrl=$(curl -s https://api.adoptopenjdk.net/v3/assets/latest/"$latestJavaLTS"/hotspot | jq -r '.[0].binary.package.link')
+ 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')
58
targetImageUrl=${targetImageUrl//\//\\/}
59
sed -E 's/-\s*image:\s*maven.*/- image: '"$targetImage"'/g' "$f" > "$f""01"
60
mv "$f""01" "$f"
0 commit comments