Don't hard code variants when testing

This allows for easily testing newer variants without having to update
test-build.sh
This commit is contained in:
Christopher Horrell 2016-04-19 23:02:27 -04:00
parent 5bde64769f
commit af265e1692
1 changed files with 2 additions and 2 deletions

View File

@ -47,9 +47,9 @@ for version in "${versions[@]}"; do
info "Test of $tag succeeded."
fi
variants=( onbuild slim wheezy )
variants=$(ls -d $version/*/ | awk -F"/" '{print $2}')
for variant in "${variants[@]}"; do
for variant in $variants; do
info "Building $tag-$variant variant..."
docker build -q -t node:$tag-$variant $version/$variant