mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-02 11:04:53 +00:00
First triple arch build
This commit is contained in:
@@ -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
|
||||
|
@@ -11,4 +11,3 @@ docker version
|
||||
|
||||
# build everything
|
||||
.deploy/docker/build-$ARCH.sh
|
||||
.deploy/docker/manifest.sh
|
Reference in New Issue
Block a user