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