aboutsummaryrefslogtreecommitdiffstats
path: root/build.sh
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2019-04-12 21:19:21 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2019-04-12 21:58:14 +0200
commit108be5e77a4832cd648474e4c3398fdaae9829ea (patch)
tree02566a218fd36cf41f6f61a1e5ce3c4adf4c2f58 /build.sh
parent838fc2ffe26f06cb11455145b7e73c452e85c15d (diff)
Build Raspberry PI image via travis-ci
Change-Id: I91ced3f779921ed26bb91daa971692620311feaf Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
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}" .)