:-'Generic Commit'
Some checks failed
Build-Test-Publish / Build (push) Failing after 26s

This commit is contained in:
Your Name
2025-05-30 20:42:07 +12:00
parent 4aa8fb3c7c
commit 744b3a4e30
2 changed files with 6 additions and 7 deletions

View File

@@ -48,15 +48,14 @@ if [ ! -f "${EXE_DIR}/simple_object_storage.arm64" ]; then
die "arm64 executable not found"
fi
# if the builder doesn't exist, create it
if ! docker buildx ls | grep -q "sos-builder"; then
docker buildx create --name sos-builder --use
else
docker buildx use sos-builder
# clean sos builder.
if docker buildx ls | grep -q "sos-builder"; then
docker buildx rm sos-builder
fi
docker buildx create --name sos-builder --use
echo "Building multi-platform Docker image"
docker buildx build --push -t gitea.jde.nz/public/simple-object-storage:latest --platform linux/amd64,linux/arm64 .
docker buildx build --no-cache --push -t gitea.jde.nz/public/simple-object-storage:latest --platform linux/amd64,linux/arm64 .
echo "Build completed successfully!"

View File

@@ -51,7 +51,7 @@ title "Building amd64 executable"
#------------------------------------------------------------------------------------------------
# build the docker image
title "Building docker image"
docker buildx build --load -t gitea.jde.nz/public/simple-object-storage:test --platform linux/amd64 "${SCRIPT_DIR}"
docker buildx build --no-cache --load -t gitea.jde.nz/public/simple-object-storage:test --platform linux/amd64 "${SCRIPT_DIR}"
#------------------------------------------------------------------------------------------------
# run the docker container