✨ Build pre-released versions
... instead of development branches.
This commit is contained in:
parent
360cb0e90f
commit
33b1475840
2 changed files with 8 additions and 5 deletions
|
@ -1,7 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
URL_LATEST=https://api.github.com/repos/digitalocean/netbox/releases/latest
|
||||
URL_LATEST=https://api.github.com/repos/digitalocean/netbox/releases
|
||||
|
||||
VERSION=$(curl "${URL_LATEST}" | jq -r ".tag_name")
|
||||
JQ_LATEST="group_by(.prerelease) | .[] | sort_by(.published_at) | reverse | .[0] | select(.prerelease==${PRERELEASE-false}) | .tag_name"
|
||||
|
||||
VERSION=$(curl "${URL_LATEST}" | jq -r "${JQ_LATEST}")
|
||||
|
||||
./build.sh "${VERSION}" $@
|
||||
|
||||
./build.sh "${VERSION}" --push
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue