修改镜像仓库

Former-commit-id: fdd81a6b333816d434a8e1bde6be625c8a5f6ee9
This commit is contained in:
zhangwei 2023-07-07 16:29:50 +08:00
parent 33415610e9
commit 1f15bad31b
1 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ func pushImage(svcCtx *svc.ServiceContext, hash string, name string) error {
return err
}
//time.Sleep(12 * 100 * time.Millisecond)
privateImageName := "hub.jcce.dev:18445/repository/docker-hub/" + name
privateImageName := "registry.cn-hangzhou.aliyuncs.com/jointcloud/pcm:" + name
// 给镜像打上私有仓库的tag
err = svcCtx.DockerClient.ImageTag(context.Background(), name, privateImageName)
if err != nil {
@ -164,7 +164,7 @@ func pushImage(svcCtx *svc.ServiceContext, hash string, name string) error {
}
// 推送镜像到registry
authConfig := types2.AuthConfig{
Username: "admin",
Username: "jointcloudNudt",
Password: "Nudt@123",
}
authConfigBytes, err := json.Marshal(authConfig)