Skip to content

Commit

Permalink
tests: Change jq dockerized URL
Browse files Browse the repository at this point in the history
Former container failed to load due to manifest v1 deprecated.
Signed-off-by: Ram Lavi <[email protected]>
  • Loading branch information
RamLavi committed Nov 27, 2024
1 parent 7d23cea commit fca688a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test-coreos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ fetch_latest_rhcos_image() {
wget -nv -O "${image_path}/${image_menu}" "${image_menu_url}"

local image_gz_url
image_gz_url=$(< "${image_path}/${image_menu}" docker run --rm -i stedolan/jq '.architectures.x86_64.artifacts.qemu.formats["qcow2.gz"].disk.location' | tr -d '"')
image_gz_url=$(< "${image_path}/${image_menu}" docker run --rm -i ghcr.io/jqlang/jq:latest '.architectures.x86_64.artifacts.qemu.formats["qcow2.gz"].disk.location' | tr -d '"')
if [[ -z "${image_gz_url}" ]]; then
echo "failed to get the image.gz name. check url and json path"
exit 1
Expand All @@ -58,7 +58,7 @@ fetch_latest_rhcos_image() {
image_name=${image_gz_name%.gz}

local gz_shasum
gz_shasum=$(< "${image_path}/${image_menu}" docker run --rm -i stedolan/jq '.architectures.x86_64.artifacts.qemu.formats["qcow2.gz"].disk.sha256' | tr -d '"')
gz_shasum=$(< "${image_path}/${image_menu}" docker run --rm -i ghcr.io/jqlang/jq:latest '.architectures.x86_64.artifacts.qemu.formats["qcow2.gz"].disk.sha256' | tr -d '"')
if [[ -z "${gz_shasum}" ]]; then
echo "failed to get the latest image shasum. check url and json path"
exit 1
Expand Down

0 comments on commit fca688a

Please sign in to comment.