|
|
|
@ -52,4 +52,22 @@ if [ "$ARCH" == "amd64" ]; then
|
|
|
|
|
./docker manifest annotate "$image:latest" "$image:linux-arm-$TRAVIS_TAG" --os linux --arch arm
|
|
|
|
|
./docker manifest annotate "$image:latest" "$image:linux-arm64-$TRAVIS_TAG" --os linux --arch arm64
|
|
|
|
|
./docker manifest push "$image:latest"
|
|
|
|
|
|
|
|
|
|
echo "Downloading manifest-tool"
|
|
|
|
|
wget https://github.com/estesp/manifest-tool/releases/download/v0.6.0/manifest-tool-linux-amd64
|
|
|
|
|
mv manifest-tool-linux-amd64 manifest-tool
|
|
|
|
|
chmod +x manifest-tool
|
|
|
|
|
./manifest-tool
|
|
|
|
|
|
|
|
|
|
echo "Pushing manifest $image:$TRAVIS_TAG"
|
|
|
|
|
./manifest-tool push from-args \
|
|
|
|
|
--platforms linux/amd64,linux/arm,linux/arm64,windows/amd64 \
|
|
|
|
|
--template "$image:OS-ARCH-$TRAVIS_TAG" \
|
|
|
|
|
--target "$image:$TRAVIS_TAG-manifest-tool"
|
|
|
|
|
|
|
|
|
|
echo "Pushing manifest $image:latest"
|
|
|
|
|
./manifest-tool push from-args \
|
|
|
|
|
--platforms linux/amd64,linux/arm,linux/arm64,windows/amd64 \
|
|
|
|
|
--template "$image:OS-ARCH-$TRAVIS_TAG" \
|
|
|
|
|
--target "$image:latest-manifest-tool"
|
|
|
|
|
fi
|
|
|
|
|