Prepares scripts and documentation for #184

This commit is contained in:
Christian Mäder 2019-12-10 21:44:11 +01:00
parent c083baf640
commit a4186c1031
6 changed files with 19 additions and 19 deletions

View file

@ -31,7 +31,7 @@ run_build() {
./build-branches.sh $@
;;
this) # Pull Requests
# only build the 'master' branch
# only build the 'master' branch of netbox
# (resulting in the 'latest' docker tag)
# and the 'main' target.
DOCKER_TARGET=main ./build.sh master

View file

@ -2,8 +2,8 @@
. hooks/common
if [ "${SOURCE_BRANCH}" == "master" ] || [ "${DEBUG}" == "true" ]; then
if [ "${SOURCE_BRANCH}" != "master" ]; then
if [ "${SOURCE_BRANCH}" == "release" ] || [ "${DEBUG}" == "true" ]; then
if [ "${SOURCE_BRANCH}" != "release" ]; then
echo "⚠️⚠️⚠️ Would exit, but DEBUG is '${DEBUG}'".
fi