mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-30 13:28:30 +01:00
better build all
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
parent
7e49700747
commit
a4fc6d6ca3
10
build-all.sh
10
build-all.sh
|
@ -10,10 +10,10 @@ unset IFS
|
||||||
for f in "${files[@]}"; do
|
for f in "${files[@]}"; do
|
||||||
image=${f%Dockerfile}
|
image=${f%Dockerfile}
|
||||||
base=${image%%\/*}
|
base=${image%%\/*}
|
||||||
suite=${image##*\/}
|
|
||||||
build_dir=$(dirname $f)
|
build_dir=$(dirname $f)
|
||||||
|
suite=${build_dir##*\/}
|
||||||
|
|
||||||
if [[ -z "$suite" ]]; then
|
if [[ -z "$suite" ]] || [[ "$suite" == "$base" ]]; then
|
||||||
suite=latest
|
suite=latest
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -27,4 +27,10 @@ for f in "${files[@]}"; do
|
||||||
echo " --- "
|
echo " --- "
|
||||||
|
|
||||||
docker push --disable-content-trust=false r.j3ss.co/${base}:${suite}
|
docker push --disable-content-trust=false r.j3ss.co/${base}:${suite}
|
||||||
|
|
||||||
|
# also push the tag latest for "stable" tags
|
||||||
|
if [[ "$suite" == "stable" ]]; then
|
||||||
|
docker tag r.j3ss.co/${base}:${suite} r.j3ss.co/${base}:latest
|
||||||
|
docker push --disable-content-trust=false r.j3ss.co/${base}:latest
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user