mirror of
https://github.com/containers/podman
synced 2024-10-20 17:23:30 +00:00
9be6f30a42
Signed-off-by: baude <bbaude@redhat.com> Signed-off-by: Chris Evich <cevich@redhat.com>
18 lines
633 B
Bash
Executable file
18 lines
633 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
source $(dirname $0)/lib.sh
|
|
|
|
# Building this is a PITA, just grab binary for use in automation
|
|
# Ref: https://goswagger.io/install.html#static-binary
|
|
download_url=$(curl -s https://api.github.com/repos/go-swagger/go-swagger/releases/latest | \
|
|
jq -r '.assets[] | select(.name | contains("'"$(uname | tr '[:upper:]' '[:lower:]')"'_amd64")) | .browser_download_url')
|
|
curl -o /usr/local/bin/swagger -L'#' "$download_url"
|
|
chmod +x /usr/local/bin/swagger
|
|
|
|
cd $GOSRC
|
|
make swagger
|
|
echo "Preserving build details for later use."
|
|
mv -v release.txt actual_release.txt # Another 'make' during testing could overwrite it
|