This commit is contained in:
AnJia 2022-05-24 10:01:31 +08:00 committed by GitHub
parent 77041486db
commit e0ce62d34a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -183,10 +183,12 @@ jobs:
let names = gcrImg.split("/")
let registry = names[0]
names=names.splice(1,5)
console.log(names)
if("k8s.gcr.io" == registry){
body+="\n\n\n k8s.gcr.io 镜像标签 Api(需梯子) <https://k8s.gcr.io/v2/"+names.join("/")+"/tags/list>\n\n k8s.gcr.io 镜像标签 UI(需梯子) <https://console.cloud.google.com/gcr/images/k8s-artifacts-prod/us/"+names.join("/")+">\n\n"
}else{
let uri=names[0]+"/global/"+names.splice(1,5).join("/")
console.log(names,uri)
if(names.length==1){
uri="global/"+names[0]
}