mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-27 02:14:14 +01:00
2e819bf094
.. which are not version branches.
15 lines
360 B
Bash
Executable File
15 lines
360 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ORIGINAL_GITHUB_REPO="digitalocean/netbox"
|
|
GITHUB_REPO="${GITHUB_REPO-$ORIGINAL_GITHUB_REPO}"
|
|
URL_RELEASES="https://api.github.com/repos/${GITHUB_REPO}/branches"
|
|
|
|
CURL_OPTS="-s"
|
|
CURL="curl ${CURL_OPTS}"
|
|
|
|
BRANCHES=$($CURL "${URL_RELEASES}" | jq -r 'map(.name) | .[] | scan("^[^v].+")')
|
|
|
|
for BRANCH in $BRANCHES; do
|
|
./build.sh "${BRANCH}" $@
|
|
done
|