Skip to content

Commit

Permalink
Switch back to manifest-tool 0.5.0, it's easier
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanScherer committed Jun 8, 2017
1 parent 9042e9b commit aaa30d3
Showing 1 changed file with 13 additions and 20 deletions.
33 changes: 13 additions & 20 deletions travis-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,21 @@ if [ "$ARCH" == "amd64" ]; then
done
set -e

echo "Downloading docker client with manifest command"
wget https://github.com/StefanScherer/dockerfiles-windows/releases/download/2017-05-17-docker-manifest/docker-linux-amd64
mv docker-linux-amd64 docker
chmod +x docker
echo "Downloading manifest-tool"
wget https://github.com/estesp/manifest-tool/releases/download/v0.5.0/manifest-tool-linux-amd64
mv manifest-tool-linux-amd64 manifest-tool
chmod +x manifest-tool
./manifest-tool

echo "Pushing manifest $image:$TRAVIS_TAG"
./docker 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"
./docker manifest annotate "$image:$TRAVIS_TAG" "$image:linux-arm-$TRAVIS_TAG" --os linux --arch arm
./docker manifest annotate "$image:$TRAVIS_TAG" "$image:linux-arm64-$TRAVIS_TAG" --os linux --arch arm64
./docker manifest push "$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"

echo "Pushing manifest $image:latest"
./docker manifest create "$image:latest" \
"$image:linux-amd64-$TRAVIS_TAG" \
"$image:linux-arm-$TRAVIS_TAG" \
"$image:linux-arm64-$TRAVIS_TAG" \
"$image:windows-amd64-$TRAVIS_TAG"
./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"
./manifest-tool push from-args \
--platforms linux/amd64,linux/arm,linux/arm64,windows/amd64 \
--template "$image:OS-ARCH-$TRAVIS_TAG" \
--target "$image:latest"
fi

0 comments on commit aaa30d3

Please sign in to comment.