mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-05-06 21:52:54 +08:00
fix(make,buildx): 使用 buildx 编译时,拉镜像到本地
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user