fix(host-image): update script for riscv64 host-image (#24533)

This commit is contained in:
屈轩
2026-03-24 11:37:26 +08:00
committed by GitHub
parent 549fa5c9da
commit 265b4d66b4
2 changed files with 4 additions and 16 deletions

View File

@@ -71,18 +71,6 @@ glance-base-3-22-2:
$(DOCKER_BUILDX)/glance-base:$(GLANCE_BASE_VERSION_3-22-2) -f ./Dockerfile.glance-base .
HOST_IMAGE_VERSION ?= v1.0.2
HOST_IMAGE_NAME = $(REGISTRY)/host-image:$(HOST_IMAGE_VERSION)
host-image:
docker pull $(HOST_IMAGE_NAME)-amd64 --platform amd64
docker pull $(HOST_IMAGE_NAME)-arm64 --platform arm64
docker manifest create $(HOST_IMAGE_NAME) \
$(HOST_IMAGE_NAME)-amd64 \
$(HOST_IMAGE_NAME)-arm64
docker manifest annotate $(HOST_IMAGE_NAME) $(HOST_IMAGE_NAME)-amd64 --arch amd64
docker manifest annotate $(HOST_IMAGE_NAME) $(HOST_IMAGE_NAME)-arm64 --arch arm64
docker manifest push $(HOST_IMAGE_NAME)
LBAGENT_BASE_VERSION = v0.0.5
lbagent-base:
$(DOCKER_BUILDX)/lbagent-base:$(LBAGENT_BASE_VERSION) -f ./Dockerfile.lbagent-base .

View File

@@ -142,7 +142,7 @@ get_image_name() {
local arch=$2
local is_all_arch=$3
local img_name="$REGISTRY/$component:$TAG"
if [[ "$is_all_arch" == "true" || "$arch" == arm64 || "$arch" == riscv64 || "$component" == host-image ]]; then
if [[ "$is_all_arch" == "true" || "$arch" == arm64 || "$arch" == riscv64 ]]; then
img_name="${img_name}-$arch"
fi
echo $img_name
@@ -296,6 +296,9 @@ show_update_cmd() {
'host-health')
spec='hostagent/HostHealth'
;;
'host-image')
spec='hostimage'
;;
'region')
spec='regionServer'
;;
@@ -352,8 +355,5 @@ for component in $COMPONENTS; do
if [[ $component == *cli ]]; then
continue
fi
if [[ $component == host-image ]]; then
continue
fi
show_update_cmd $component $ARCH
done