Skip to content

ysicing/harborv1-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

  1. 编辑main.go 替换域名 & 用户
  2. 构建二进制
GOOS=linux go build
  1. 生成auth.json
{
  "new.hub": {
    "username": "", 
    "password": ""
  },
  "old.hub": {
    "username": "",
    "password": ""
  }
}
  1. 构建镜像
docker build -t xxxx .
docker push xxxx
  1. 编辑job.yaml, 替换镜像和hosts

  2. 等待任务完成