diff options
Diffstat (limited to 'build.sh')
-rw-r--r-- | build.sh | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -11,7 +11,8 @@ repo=${REPO:-opnfv} tag=${BRANCH:-latest} arch=${arch-"\ amd64 \ -arm64"} +arm64 \ +arm"} image="xtesting" build_opts=(--pull=true --no-cache --force-rm=true) @@ -19,6 +20,9 @@ for arch in ${arch};do if [[ ${arch} == arm64 ]]; then find . -name Dockerfile -exec sed -i \ -e "s|alpine:3.9|multiarch/alpine:arm64-v3.9|g" {} + + elif [[ ${arch} == arm ]]; then + find . -name Dockerfile -exec sed -i \ + -e "s|alpine:3.9|multiarch/alpine:armhf-v3.9|g" {} + fi (cd docker && docker build "${build_opts[@]}" \ -t "${repo}/${image}:${arch}-${tag}" .) |