Build system for hub.docker.com

This commit is contained in:
Christian Mäder 2019-02-01 09:58:07 +01:00
parent 5a09659278
commit 4ef420d443
No known key found for this signature in database
GPG key ID: 92FFD0A711F196BB
9 changed files with 240 additions and 70 deletions
hooks

12
hooks/test Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
. hooks/common
if [ "${VARIANT}" == "main" ] && [ "${BUILD}" == "BRANCHES" ]; then
echo "🐳🐳🐳 Testing"
docker-compose pull --parallel
docker-compose build
docker-compose run netbox ./manage.py test
else
echo "🐳🐳🐳 No tests are implemented for build '${BUILD}' with variant '${VARIANT}'."
fi