From 8b88a78e4ddfefce751ff5bb58b6f6036f4809e5 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Fri, 4 Aug 2023 13:25:51 +0800 Subject: [PATCH] fix --- fs_package_docker_image.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs_package_docker_image.sh b/fs_package_docker_image.sh index 422fea30..d73f11aa 100755 --- a/fs_package_docker_image.sh +++ b/fs_package_docker_image.sh @@ -6,10 +6,10 @@ cd server/$name CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ./bin/api-$name-srv ./$name.go #删除之前旧的镜像 docker rmi -f api-$name-srv:latest -docker rmi -f registry.cn-hangzhou.aliyuncs.com/fusen/fusen_docker_hub:latest +docker rmi -f registry.cn-hangzhou.aliyuncs.com/fusen-test/fusen_docker_hub:latest #打包docker镜像 docker build -t api-$name-srv:latest . -#打tag(测试环境,正式把fusen-test改成fusen) +#打tag(测试环境,正式把命名空间fusen-test改成fusen) docker tag api-$name-srv:latest registry.cn-hangzhou.aliyuncs.com/fusen-test/$name:latest -#推送到阿里云镜像库(测试环境,正式把fusen-test改成fusen) -docker push registry.cn-hangzhou.aliyuncs.com/fusen-test/$name:latest \ No newline at end of file +#推送到阿里云镜像库(测试环境,正式把命名空间fusen-test改成fusen) +docker push registry.cn-hangzhou.aliyuncs.com/fusen-test/$name:latest