Skip to content

Commit

Permalink
Install swagger binary for podman CI
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Evich <[email protected]>
  • Loading branch information
cevich committed Dec 8, 2021
1 parent 438ba2f commit dc6ffc4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cache_images/podman_tooling.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ bigto $SUDO make install.tools
# shellcheck disable=SC2154
if [[ "$OS_RELEASE_ID" == "ubuntu" ]]; then
lilto $SUDO make install.libseccomp.sudo
else # Fedora
msg "Installing swagger binary"
download_url=$(\
curl -s https://api.github.com/repos/go-swagger/go-swagger/releases/latest | \
jq -r '.assets[] | select(.name | contains("linux_amd64")) | .browser_download_url')
$SUDO curl --fail -s -o /usr/local/bin/swagger -L'#' "$download_url"
$SUDO chmod +x /usr/local/bin/swagger
/usr/local/bin/swagger version
fi

# Make pristine for other runtime usage/expectations also save a bit
Expand Down

0 comments on commit dc6ffc4

Please sign in to comment.