This commit is contained in:
@@ -48,15 +48,14 @@ if [ ! -f "${EXE_DIR}/simple_object_storage.arm64" ]; then
|
|||||||
die "arm64 executable not found"
|
die "arm64 executable not found"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# if the builder doesn't exist, create it
|
# clean sos builder.
|
||||||
if ! docker buildx ls | grep -q "sos-builder"; then
|
if docker buildx ls | grep -q "sos-builder"; then
|
||||||
docker buildx create --name sos-builder --use
|
docker buildx rm sos-builder
|
||||||
else
|
|
||||||
docker buildx use sos-builder
|
|
||||||
fi
|
fi
|
||||||
|
docker buildx create --name sos-builder --use
|
||||||
|
|
||||||
echo "Building multi-platform Docker image"
|
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!"
|
echo "Build completed successfully!"
|
||||||
|
|
||||||
|
@@ -51,7 +51,7 @@ title "Building amd64 executable"
|
|||||||
#------------------------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------------------------
|
||||||
# build the docker image
|
# build the docker image
|
||||||
title "Building 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
|
# run the docker container
|
||||||
|
Reference in New Issue
Block a user