update Dockerfile for multi-platform support and increment version to 20
parent
313ae786c3
commit
d8b4f54f68
@ -1 +1 @@
|
||||
3
|
||||
20
|
||||
|
||||
@ -1,8 +1,23 @@
|
||||
#!/usr/bin/env bash -e
|
||||
#!bash -e
|
||||
|
||||
VERSION_FILE=VERSION
|
||||
current=$(cat $VERSION_FILE)
|
||||
tag=$((current + 1))
|
||||
docker buildx build --platform linux/amd64,linux/arm64 -t docker.bassengvegen.com/openclaw:${tag} .
|
||||
docker push docker.bassengvegen.com/openclaw:${tag}
|
||||
|
||||
# Ensure buildx is set up properly for cross-platform builds
|
||||
docker buildx create --use --name multiplatform || docker buildx use multiplatform
|
||||
|
||||
# Build and push with proper multi-platform support
|
||||
DOCKER_BUILDKIT=1 docker buildx build \
|
||||
--platform linux/amd64 \
|
||||
--push \
|
||||
--progress=plain \
|
||||
--provenance=false \
|
||||
--sbom=false \
|
||||
--output type=registry,oci-mediatypes=false,compression=gzip,compression-level=9,force-compression=true \
|
||||
-t docker.bassengvegen.com/openclaw:${tag} \
|
||||
--no-cache \
|
||||
.
|
||||
|
||||
echo $tag > $VERSION_FILE
|
||||
echo "Successfully built and pushed openclaw:${tag}"
|
||||
Loading…
Reference in New Issue