Skip to content

Commit

Permalink
write downloaded release to auxillary file
Browse files Browse the repository at this point in the history
to allow usage like the following:

    /path/to/get-fedora.sh
    /path/to/e2e.sh "$(cat f-release)"

or

    /path/to/get-alma.sh
    /path/to/e2e.sh "$(cat alma-release)" alma
  • Loading branch information
gsauthof committed Dec 16, 2024
1 parent c124ae4 commit 38852b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/get-alma.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ mv AlmaLinux-"$release"-GenericCloud-latest.x86_64.qcow2 "$name"

ln -sf "$name" alma"$release"-latest.x86_64.qcow2


echo "$release" > alma-release
5 changes: 5 additions & 0 deletions test/get-fedora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ else
cid=$(curl -sSf https://kojipkgs.fedoraproject.org/compose/cloud/"$latest"/COMPOSE_ID \
| grep '^Fedora-Cloud[0-9.-]\+$' )
version=${cid#Fedora-Cloud-}
if [ -z "$release" ]; then
release=${version%%-*}
fi
img_url=https://kojipkgs.fedoraproject.org/compose/cloud/"$latest"/compose/Cloud/x86_64/images/Fedora-Cloud-Base-Generic-"$version".x86_64.qcow2
img=Fedora-Cloud-Base-Generic-"$version".x86_64.qcow2
fi
Expand All @@ -44,3 +47,5 @@ else
fi

ln -sf "$img" f"$release"-latest.x86_64.qcow2

echo "$release" > f-release

0 comments on commit 38852b9

Please sign in to comment.