1
0
mirror of https://github.com/phusion/baseimage-docker.git synced 2026-03-26 04:18:46 +00:00

Multiarch implementation for amd64, arm64 and arm32

This commit is contained in:
Mark Ison
2019-05-20 15:30:48 +01:00
parent e97d8464b9
commit e4ae9aac10
6 changed files with 131 additions and 18 deletions

27
build-multiarch.sh Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
set -e
set -x
if [[ $TRAVIS_PULL_REQUEST == 'false' ]]; then
for arch in $ARCHS; do
echo ${arch}
docker pull $NAME:$VERSION-${arch}
if [[ $TAG_LATEST != 'true' ]]; then
docker manifest create --amend $NAME:$VERSION $NAME:$VERSION-${arch}
docker manifest annotate $NAME:$VERSION $NAME:$VERSION-${arch} --arch ${arch}
else
docker manifest create --amend $NAME:latest $NAME:$VERSION-${arch}
docker manifest annotate $NAME:latest $NAME:$VERSION-${arch} --arch ${arch}
fi
done
echo "Push manifests"
if [[ $TAG_LATEST != 'true' ]]; then
docker manifest push $NAME:$VERSION
else
docker manifest push $NAME:latest
fi
fi