2019-02-03 07:00:50 +01:00
|
|
|
#!/usr/bin/env bash
|
2019-02-03 20:19:59 +01:00
|
|
|
|
2019-02-03 07:00:50 +01:00
|
|
|
if [ "$TRAVIS_BRANCH" == "develop" ]; then
|
|
|
|
TARGET=jc5x/firefly-iii:develop
|
|
|
|
|
2019-11-02 07:01:11 +01:00
|
|
|
ARM32=jc5x/firefly-iii:develop-arm
|
|
|
|
ARM64=jc5x/firefly-iii:develop-arm64
|
|
|
|
AMD64=jc5x/firefly-iii:develop-amd64
|
|
|
|
|
|
|
|
docker manifest create $TARGET $ARM32 $ARM64 $AMD64
|
|
|
|
docker manifest annotate $TARGET $ARM32 --arch arm --os linux
|
|
|
|
docker manifest annotate $TARGET $ARM64 --arch arm64 --os linux
|
|
|
|
docker manifest annotate $TARGET $AMD64 --arch amd64 --os linux
|
2019-02-03 07:00:50 +01:00
|
|
|
docker manifest push $TARGET
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$TRAVIS_BRANCH" == "master" ]; then
|
|
|
|
TARGET=jc5x/firefly-iii:latest
|
2019-11-02 07:01:11 +01:00
|
|
|
|
|
|
|
ARM32=jc5x/firefly-iii:latest-arm
|
|
|
|
ARM64=jc5x/firefly-iii:latest-arm64
|
|
|
|
AMD64=jc5x/firefly-iii:latest-amd64
|
2019-02-03 07:00:50 +01:00
|
|
|
|
2019-11-01 06:00:15 +01:00
|
|
|
|
2019-11-02 07:01:11 +01:00
|
|
|
docker manifest create $TARGET $ARM32 $ARM64 $AMD64
|
|
|
|
docker manifest annotate $TARGET $ARM32 --arch arm --os linux
|
|
|
|
docker manifest annotate $TARGET $ARM64 --arch arm64 --os linux
|
|
|
|
docker manifest annotate $TARGET $AMD64 --arch amd64 --os linux
|
2019-02-03 07:00:50 +01:00
|
|
|
docker manifest push $TARGET
|
|
|
|
|
|
|
|
# and another one for version specific:
|
2019-11-02 07:01:11 +01:00
|
|
|
VERSION_TARGET=jc5x/firefly-iii:release-$VERSION
|
2019-02-03 07:00:50 +01:00
|
|
|
|
2019-11-02 07:01:11 +01:00
|
|
|
VERSION_ARM32=jc5x/firefly-iii:release-$VERSION-arm
|
|
|
|
VERSION_ARM64=jc5x/firefly-iii:release-$VERSION-arm64
|
|
|
|
VERSION_AMD64=jc5x/firefly-iii:release-$VERSION-amd64
|
|
|
|
|
|
|
|
docker manifest create $VERSION_TARGET $VERSION_ARM32 $VERSION_ARM64 $VERSION_AMD64
|
|
|
|
docker manifest annotate $VERSION_TARGET $VERSION_ARM32 --arch arm --os linux
|
|
|
|
docker manifest annotate $VERSION_TARGET $VERSION_ARM64 --arch arm64 --os linux
|
|
|
|
docker manifest annotate $VERSION_TARGET $VERSION_AMD64 --arch amd64 --os linux
|
|
|
|
docker manifest push $VERSION_TARGET
|
2019-02-03 07:00:50 +01:00
|
|
|
fi
|