You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.1 KiB
62 lines
2.1 KiB
#!/bin/bash
|
|
set -e
|
|
|
|
image="stefanscherer/whoami"
|
|
docker tag whoami "$image:linux-$ARCH-$TRAVIS_TAG"
|
|
docker push "$image:linux-$ARCH-$TRAVIS_TAG"
|
|
|
|
if [ "$ARCH" == "amd64" ]; then
|
|
set +e
|
|
echo "Waiting for other images $image:linux-arm-$TRAVIS_TAG"
|
|
until docker run --rm stefanscherer/winspector "$image:linux-arm-$TRAVIS_TAG"
|
|
do
|
|
sleep 15
|
|
echo "Try again"
|
|
done
|
|
until docker run --rm stefanscherer/winspector "$image:linux-arm64-$TRAVIS_TAG"
|
|
do
|
|
sleep 15
|
|
echo "Try again"
|
|
done
|
|
until docker run --rm stefanscherer/winspector "$image:windows-amd64-$TRAVIS_TAG"
|
|
do
|
|
sleep 15
|
|
echo "Try again"
|
|
done
|
|
until docker run --rm stefanscherer/winspector "$image:windows-amd64-$TRAVIS_TAG-1709"
|
|
do
|
|
sleep 15
|
|
echo "Try again"
|
|
done
|
|
until docker run --rm stefanscherer/winspector "$image:windows-amd64-$TRAVIS_TAG-1803"
|
|
do
|
|
sleep 15
|
|
echo "Try again"
|
|
done
|
|
set -e
|
|
|
|
echo "Pushing manifest $image:$TRAVIS_TAG"
|
|
docker -D manifest create "$image:$TRAVIS_TAG" \
|
|
"$image:linux-amd64-$TRAVIS_TAG" \
|
|
"$image:linux-arm-$TRAVIS_TAG" \
|
|
"$image:linux-arm64-$TRAVIS_TAG" \
|
|
"$image:windows-amd64-$TRAVIS_TAG" \
|
|
"$image:windows-amd64-$TRAVIS_TAG-1709" \
|
|
"$image:windows-amd64-$TRAVIS_TAG-1803"
|
|
docker manifest annotate "$image:$TRAVIS_TAG" "$image:linux-arm-$TRAVIS_TAG" --os linux --arch arm --variant v6
|
|
docker manifest annotate "$image:$TRAVIS_TAG" "$image:linux-arm64-$TRAVIS_TAG" --os linux --arch arm64 --variant v8
|
|
docker manifest push "$image:$TRAVIS_TAG"
|
|
|
|
echo "Pushing manifest $image:latest"
|
|
docker -D manifest create "$image:latest" \
|
|
"$image:linux-amd64-$TRAVIS_TAG" \
|
|
"$image:linux-arm-$TRAVIS_TAG" \
|
|
"$image:linux-arm64-$TRAVIS_TAG" \
|
|
"$image:windows-amd64-$TRAVIS_TAG" \
|
|
"$image:windows-amd64-$TRAVIS_TAG-1709" \
|
|
"$image:windows-amd64-$TRAVIS_TAG-1803"
|
|
docker manifest annotate "$image:latest" "$image:linux-arm-$TRAVIS_TAG" --os linux --arch arm --variant v6
|
|
docker manifest annotate "$image:latest" "$image:linux-arm64-$TRAVIS_TAG" --os linux --arch arm64 --variant v8
|
|
docker manifest push "$image:latest"
|
|
fi
|