aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rw-r--r--build.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index c699b1eb..7d78afeb 100644
--- a/build.sh
+++ b/build.sh
@@ -17,11 +17,14 @@ build_opts=(--pull=true --no-cache --force-rm=true)
for arch in ${arch};do
if [[ ${arch} == arm64 ]]; then
- find . -name Dockerfile -exec sed -i -e "s|alpine:3.7|multiarch/alpine:arm64-v3.7|g" {} +
+ find . -name Dockerfile -exec sed -i \
+ -e "s|alpine:3.7|multiarch/alpine:arm64-v3.7|g" {} +
fi
- (cd docker && docker build "${build_opts[@]}" -t "${repo}/${image}:${arch}-${tag}" .)
+ (cd docker && docker build "${build_opts[@]}" \
+ -t "${repo}/${image}:${arch}-${tag}" .)
docker push "${repo}/${image}:${arch}-${tag}"
- [ "$?" == "0" ] && (sudo docker rmi "${repo}/${image}:${arch}-${tag}"|| true)
+ [ "$?" == "0" ] &&
+ (sudo docker rmi "${repo}/${image}:${arch}-${tag}"|| true)
find . -name Dockerfile -exec git checkout \{\} +;
done
exit $?