Skip to content

Commit

Permalink
Merge pull request #28 from linkvt/fix-alpine-arm-builds-clean
Browse files Browse the repository at this point in the history
Fix ARM builds e.g. for keepalived
  • Loading branch information
BertrandGouny authored Jan 24, 2021
2 parents 434a708 + 178886f commit d3738d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ before_script:
# In native builds this information and binaries are not necessary and that is why
# we are injecting them in the build scripts and we do not include them in the Dockerfiles
- if [[ "${TARGET_ARCH}" != 'amd64' ]]; then
sed -i "s/FROM debian/FROM ${TARGET_ARCH}\/debian/" image/Dockerfile;
sed -i "s/FROM alpine/FROM ${TARGET_ARCH}\/alpine/" image/Dockerfile;
fi
- if [[ "${TARGET_ARCH}" != 'amd64' ]]; then
sed -i "/${TARGET_ARCH}\/debian/a COPY \
sed -i "/${TARGET_ARCH}\/alpine/a COPY \
--from=multiarch/qemu-user-static:x86_64-${QEMU_ARCH} \
/usr/bin/qemu-${QEMU_ARCH}-static /usr/bin/" image/Dockerfile;
fi
Expand Down

0 comments on commit d3738d7

Please sign in to comment.