fix: support arm64/amd64 in push script

deprecated: NodecenterActions support JSON type contract execution.
This commit is contained in:
CaiHQ 2021-12-03 14:04:09 +08:00
parent 725f8f1bb6
commit 09a80738f5

View File

@ -11,7 +11,7 @@ if [ $# -lt 1 ]; then
fi
#linux/arm64/v8,
if [ "$2" == "push" ]; then
docker buildx build --platform linux/amd64 -t bdware/bdcluster:$1 ./ --push
docker buildx build --platform linux/amd64,linux/arm64/v8 -t bdware/bdcluster:$1.arm64 ./ --push
elif [ "$2" == "save" ]; then
docker buildx build --platform linux/amd64 -t bdware/bdcluster:$1 ./ --load
docker save -o $3/bdcluster-$1.tar bdware/bdcluster:$1