From 3d9d34ac153ab2951dc70c76541e4e4d2f07a85d Mon Sep 17 00:00:00 2001 From: Zhang Dongliang Date: Mon, 28 Dec 2020 14:32:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(make,buildx):=20=E4=BD=BF=E7=94=A8=20buildx?= =?UTF-8?q?=20=E7=BC=96=E8=AF=91=E6=97=B6=EF=BC=8C=E6=8B=89=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E5=88=B0=E6=9C=AC=E5=9C=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/docker_push.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/scripts/docker_push.sh b/scripts/docker_push.sh index 95422c8a3d..c6d69ff6fc 100755 --- a/scripts/docker_push.sh +++ b/scripts/docker_push.sh @@ -77,7 +77,8 @@ build_image() { local tag=$1 local file=$2 local path=$3 - docker buildx build -t "$tag" -f "$2" "$3" + docker buildx build -t "$tag" -f "$2" "$3" --push + docker pull "$tag" } buildx_and_push() { @@ -89,11 +90,6 @@ buildx_and_push() { docker pull "$tag" } -push_image() { - local tag=$1 - docker push "$tag" -} - build_process() { local component=$1 build_bin $component @@ -105,7 +101,6 @@ build_process() { fi build_image $img_name $DOCKER_DIR/Dockerfile.$component $SRC_DIR - push_image "$img_name" } build_process_with_buildx() {