diff --git a/hooks/common b/hooks/common index fcf84a3..49cd507 100755 --- a/hooks/common +++ b/hooks/common @@ -53,7 +53,7 @@ export DOCKER_ORG="index.docker.io/netboxcommunity" export DOCKER_REPO=netbox export DOCKERHUB_REPO=netboxcommunity/netbox # shellcheck disable=SC2153 -export BUILD="$DOCKER_TAG" +export BUILD="${DOCKER_TAG}" unset DOCKER_TAG diff --git a/hooks/test b/hooks/test index 14ad88f..f741c45 100755 --- a/hooks/test +++ b/hooks/test @@ -3,11 +3,12 @@ . hooks/common # test 'branches' and 'this' (i.e. pull request) builds -if [ "${BUILD}" == "branches" ] || [ "${BUILD}" == "this" ]; then +if [ "${BUILD}" == "branches" ] \ + || [ "${BUILD}" == "this" ] \ + || [ "${DEBUG}" == "true" ]; then echo "🐳🐳🐳 Testing" - export DOCKER_TARGET="main" - - docker-compose run netbox ./manage.py test + VERSION=latest docker-compose run netbox ./manage.py test + VERSION=snapshot docker-compose run netbox ./manage.py test docker-compose down -v else echo "🐳🐳🐳 No tests are implemented for build '${BUILD}'."