First triple arch build

This commit is contained in:
James Cole
2019-11-02 07:01:11 +01:00
parent 3fc653687c
commit 51f25b2dce
4 changed files with 37 additions and 49 deletions

View File

@@ -2,29 +2,42 @@
if [ "$TRAVIS_BRANCH" == "develop" ]; then
TARGET=jc5x/firefly-iii:develop
IMAGENAME=jc5x/firefly-iii:develop-$ARCH
docker manifest create $TARGET $IMAGENAME
docker manifest annotate $TARGET $IMAGENAME --arch $ARCH --os linux
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
docker manifest push $TARGET
fi
echo "The version is $VERSION"
if [ "$TRAVIS_BRANCH" == "master" ]; then
TARGET=jc5x/firefly-iii:latest
IMAGENAME=jc5x/firefly-iii:latest-$ARCH
ARM32=jc5x/firefly-iii:latest-arm
ARM64=jc5x/firefly-iii:latest-arm64
AMD64=jc5x/firefly-iii:latest-amd64
docker manifest create $TARGET $IMAGENAME
docker manifest annotate $TARGET $IMAGENAME --arch $ARCH --os linux
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
docker manifest push $TARGET
# and another one for version specific:
TARGET=jc5x/firefly-iii:release-$VERSION
IMAGENAME=jc5x/firefly-iii:release-$VERSION-$ARCH
VERSION_TARGET=jc5x/firefly-iii:release-$VERSION
docker manifest create $TARGET $IMAGENAME
docker manifest annotate $TARGET $IMAGENAME --arch $ARCH --os linux
docker manifest push $TARGET
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
fi

View File

@@ -11,4 +11,3 @@ docker version
# build everything
.deploy/docker/build-$ARCH.sh
.deploy/docker/manifest.sh