mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-12-25 16:18:50 +01:00
a5dccb2558
This reverts commit 1fb6b80f93
.
21 lines
508 B
Bash
Executable File
21 lines
508 B
Bash
Executable File
#!/bin/bash
|
|
# Builds develop, develop-* and master branches
|
|
|
|
echo "▶️ $0 $*"
|
|
|
|
ORIGINAL_GITHUB_REPO="digitalocean/netbox"
|
|
GITHUB_REPO="${GITHUB_REPO-$ORIGINAL_GITHUB_REPO}"
|
|
URL_RELEASES="https://api.github.com/repos/${GITHUB_REPO}/branches"
|
|
|
|
CURL="curl -sS"
|
|
|
|
BRANCHES=$($CURL "${URL_RELEASES}" | jq -r 'map(.name) | .[] | scan("^[^v].+") | match("^(master|develop).*") | .string')
|
|
|
|
ERROR=0
|
|
|
|
for BRANCH in $BRANCHES; do
|
|
# shellcheck disable=SC2068
|
|
./build.sh "${BRANCH}" $@ || ERROR=1
|
|
done
|
|
exit $ERROR
|