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 <guoqiangui@zhongshitech.cn>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
master^2
guoqiangui 2026-05-16 11:18:09 +08:00 committed by GitHub
parent b5f79db321
commit 3e89077d46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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() {