✨ Build pre-released versions
... instead of development branches.
This commit is contained in:
parent
360cb0e90f
commit
33b1475840
@ -21,8 +21,8 @@ after_success:
|
|||||||
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
|
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
|
||||||
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
- if [ "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then
|
||||||
./build.sh master --push;
|
./build.sh master --push;
|
||||||
./build.sh develop-2.2 --push;
|
./build-latest.sh --push;
|
||||||
./build-latest.sh;
|
PRERELEASE=true ./build-latest.sh --push;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/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…
Reference in New Issue
Block a user