mirror of
https://github.com/tmaier/docker-compose
synced 2024-11-26 05:47:50 +01:00
Add test hook
This commit is contained in:
parent
b3fc0e335f
commit
3702ceb4b4
11
hooks/test
Executable file
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
|
Loading…
Reference in New Issue
Block a user