From 3e89077d46a7181a5ebcb695c561ea0f7369208b Mon Sep 17 00:00:00 2001 From: guoqiangui <45208340+guoqiangui@users.noreply.github.com> Date: Sat, 16 May 2026 11:18:09 +0800 Subject: [PATCH] fix(deploy): use IMAGE_NAME variable in remove_image instead of hardcoded name (#7907) The `remove_image` function was using a hardcoded image name `vben-admin-pro` instead of the `$IMAGE_NAME` variable (`vben-admin-local`), so the old local image was never actually cleaned up before each build. Co-authored-by: guoqiangui Co-authored-by: Claude Sonnet 4.6 --- scripts/deploy/build-local-docker-image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deploy/build-local-docker-image.sh b/scripts/deploy/build-local-docker-image.sh index 4881487f4..b6372810a 100755 --- a/scripts/deploy/build-local-docker-image.sh +++ b/scripts/deploy/build-local-docker-image.sh @@ -13,7 +13,7 @@ function stop_and_remove_container() { function remove_image() { # Remove the existing image - docker rmi vben-admin-pro >/dev/null 2>&1 + docker rmi ${IMAGE_NAME} >/dev/null 2>&1 } function install_dependencies() {