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

View File

@ -171,7 +171,6 @@ jobs:
}
let gcrImg = "${{ steps.pullIssuesPorter.outputs.GCR_IMAGE }}"
console.log(gcrImg)
let colonIndex = gcrImg.indexOf(":")
@ -183,11 +182,13 @@ 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("/")
let uri=names[0]+"/global/"
names=names.splice(1,5)
uri+=names.join("/")
console.log(names,uri)
if(names.length==1){
uri="global/"+names[0]