'Generic Commit'
Some checks failed
dropshell-build / build (linux/arm64) (push) Has been cancelled
dropshell-build / build (linux/amd64) (push) Has been cancelled

This commit is contained in:
Your Name
2025-06-15 08:59:00 +12:00
parent 5de0f19769
commit a075d45ed3
6 changed files with 25 additions and 62 deletions

View File

@ -6,18 +6,10 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
PROJECT="dropshell-build-base"
# Create buildx builder if it doesn't exist
if ! docker buildx ls | grep -q "${PROJECT}-multiarch"; then
docker buildx create --name ${PROJECT}-multiarch --use \
--driver-opt env.BUILDKIT_MAX_PARALLELISM=4
else
docker buildx use ${PROJECT}-multiarch
fi
ARCH=$(uname -m)
# Build multi-platform image and push it
docker buildx build \
--platform linux/amd64,linux/arm64 \
--push \
docker build \
-t "gitea.jde.nz/public/dropshell-build-base:test" \
-f "${SCRIPT_DIR}/Dockerfile.dropshell-build-base" \
${SCRIPT_DIR}