mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-22 16:03:10 +01:00
❇️ Automatically build all branches
.. which are not version branches.
This commit is contained in:
parent
96d414b46d
commit
2e819bf094
@ -20,9 +20,7 @@ after_script:
|
||||
after_success:
|
||||
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
|
||||
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
||||
./build.sh master --push;
|
||||
./build.sh develop --push;
|
||||
./build.sh develop-2.3 --push;
|
||||
./build-branches.sh --push;
|
||||
./build-latest.sh --push;
|
||||
PRERELEASE=true ./build-latest.sh --push;
|
||||
fi
|
||||
|
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…
Reference in New Issue
Block a user