aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rw-r--r--build.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 6c2a0c71..92e475c4 100644
--- a/build.sh
+++ b/build.sh
@@ -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}" .)