nextcloud-dlna/docker-build-image.sh

30 lines
692 B
Bash
Raw Normal View History

2023-10-18 14:40:50 +00:00
#!/bin/bash
version=`./gradlew currentVersion | grep "Project version" | awk -F"version: " '{ print $2 }'`
echo "This will create docker image for version $version."
read -p "Continue [y/n]? " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
exit
fi
./gradlew clean build || exit
2023-10-14 09:59:21 +00:00
docker buildx create \
--use \
--platform=linux/arm/v7,linux/arm64/v8,linux/amd64 \
--name multi-platform-builder
docker buildx inspect --bootstrap
2023-10-18 14:40:50 +00:00
docker buildx build \
--push \
--platform=linux/arm/v7,linux/arm64/v8,linux/amd64 \
--tag=thanek/nextcloud-dlna:$version .
2023-10-14 09:59:21 +00:00
docker buildx build \
--push \
--platform=linux/arm/v7,linux/arm64/v8,linux/amd64 \
--tag=thanek/nextcloud-dlna .