diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-04-12 21:19:21 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-04-12 21:58:14 +0200 |
commit | 108be5e77a4832cd648474e4c3398fdaae9829ea (patch) | |
tree | 02566a218fd36cf41f6f61a1e5ce3c4adf4c2f58 /build.sh | |
parent | 838fc2ffe26f06cb11455145b7e73c452e85c15d (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.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}" .) |