mirror of
https://github.com/phusion/baseimage-docker.git
synced 2026-11-20 09:21:17 +00:00
Multiarch implementation for amd64, arm64 and arm32
This commit is contained in:
1 parent
e97d8464b9
commit
e4ae9aac10
6 files changed
+131
-18
No files matched your search
Executable
+27
@@ -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