Commit f70e6d10 by tingweiwang

harbor 推送镜像login操作

1 parent ea5aa241
......@@ -28,6 +28,7 @@ for z in `echo $i |awk -F / '{print $3}'`
do
echo $z
docker tag $i $harbor_host/autodl-workspace/$z
docker login $harbor_host -u admin -p $harbor_passwd
docker push $harbor_host/autodl-workspace/$z
done
done
......
......@@ -18,6 +18,7 @@ docker tag registry.cn-hangzhou.aliyuncs.com/google-containers/pause-amd64:3.0 $
docker tag nginx:latest $harbor_host/k8s/nginx:latest
#docker tag hb.seetatech.com/k8s/operator:0.0.19 $harbor_host/k8s/operator:0.0.19
echo "开始推送镜像到harbor"
docker login $harbor_host -u admin -p $harbor_passwd
docker push $harbor_host/k8s/image-proxy:v0.9.0
docker push $harbor_host/k8s/ubuntu-basic:16.04
docker push $harbor_host/k8s/coredns:1.5.0
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!