/harborv1-sync

迁移harbor v1

Primary LanguageGo

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. 等待任务完成