diff --git a/.runner/publish.sh b/.runner/publish.sh index 0628d57..e8a3714 100755 --- a/.runner/publish.sh +++ b/.runner/publish.sh @@ -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!" diff --git a/test-docker.sh b/test-docker.sh index a870e1d..ce9dc44 100755 --- a/test-docker.sh +++ b/test-docker.sh @@ -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