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:
27
build-multiarch.sh
Executable file
27
build-multiarch.sh
Executable 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
|
||||
Reference in New Issue
Block a user