0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2024-11-06 06:14:57 +01:00
nextcloud-docker/.travis/test-example-dockerfiles.sh

19 lines
332 B
Bash
Raw Normal View History

#!/bin/bash
set -e
image="$1"
cd .examples/dockerfiles
dirs=( */ )
dirs=( "${dirs[@]%/}" )
for dir in "${dirs[@]}"; do
if [ -d "$dir/$VARIANT" ]; then
(
2018-08-01 22:55:25 +02:00
cd "$dir/$VARIANT"
sed -ri -e 's/^FROM .*/FROM '"$image"'/g' 'Dockerfile'
docker build -t "$image-$dir" .
)
fi
done