Merge pull request #222 from netbox-community/fix-github-action

Fix Github Action
This commit is contained in:
Christian Mäder 2020-01-20 08:38:40 +01:00 committed by GitHub
commit 40ef427336
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 39 additions and 10 deletions

10
test.sh
View file

@ -7,6 +7,16 @@ set -e
# of the Docker Image that is to be used
export IMAGE="${IMAGE-netboxcommunity/netbox:latest}"
if [ -z "${IMAGE}" ]; then
echo "⚠️ No image defined"
if [ -z "${DEBUG}" ]; then
exit 1;
else
echo "⚠️ Would 'exit 1' here, but DEBUG is '${DEBUG}'."
fi
fi
# The docker compose command to use
doco="docker-compose -f docker-compose.test.yml"