diff options
Diffstat (limited to 'build.sh')
-rw-r--r-- | build.sh | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 $? |