Skip to content

Commit

Permalink
CircleCI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperancinha committed Jun 25, 2024
1 parent 73f0e49 commit b42ffd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javaUpdatesOne.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if [[ -n $latestJavaLTS ]]; then
# Circle CI File
f=".circleci/config.yml"
if [ -f $f ]; then
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')
targetImageUrl=${targetImageUrl//\//\\/}
sed -E 's/-\s*image:\s*maven.*/- image: '"$targetImage"'/g' "$f" > "$f""01"
mv "$f""01" "$f"
Expand Down

0 comments on commit b42ffd9

Please sign in to comment.