1
0
mirror of https://github.com/tmaier/docker-compose synced 2024-11-23 00:12:00 +01:00

Add test hook

This commit is contained in:
Tobias L. Maier 2018-04-29 07:28:01 +02:00
parent b3fc0e335f
commit 3702ceb4b4

11
hooks/test Executable file

@ -0,0 +1,11 @@
#!/usr/bin/env sh
set -e
images=`docker image ls ${DOCKER_REPO} --format "{{.Repository}}:{{.Tag}}"`;
for image in ${images};
do
export IMAGE_NAME=${image};
docker-compose -f docker-compose.test.yml --rm run sut
done