❇️ Automatically build all branches
.. which are not version branches.
This commit is contained in:
parent
96d414b46d
commit
2e819bf094
2 changed files with 15 additions and 3 deletions
14
build-branches.sh
Executable file
14
build-branches.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue