env:
- REPO="${DOCKER_USERNAME}"
- arch="amd64"
+ - script: sudo -E bash build.sh
+ env:
+ - REPO="${DOCKER_USERNAME}"
+ - arch="arm"
- script: sudo -E bash build.sh
env:
- REPO="${DOCKER_USERNAME}"
- stage: publish xtesting manifests
script: >
sudo manifest-tool push from-args \
- --platforms linux/amd64,linux/arm64 \
+ --platforms linux/amd64,linux/arm,linux/arm64 \
--template ${DOCKER_USERNAME}/xtesting:ARCH-iruya \
--target ${DOCKER_USERNAME}/xtesting:iruya
tag=${BRANCH:-iruya}
arch=${arch-"\
amd64 \
-arm64"}
+arm64 \
+arm"}
image="xtesting"
build_opts=(--pull=true --no-cache --force-rm=true)
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}" .)