Skip to content

Commit

Permalink
adding registry.k8s.io registry
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-klimko committed Feb 9, 2023
1 parent 1fdeb98 commit b02c884
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/action/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func (o *ImagesPusher) Run(images []string) error {
imgNameSplit := regexp.MustCompile(`(codefresh\/|codefresh-io\/)`).Split(imgName, -1)
if len(imgNameSplit) == 1 {
dstImageName = fmt.Sprintf("%s/%s", o.DstRegistry.RegistryStr(), imgName)
dstImageName = regexp.MustCompile(`(docker.io\/|k8s.gcr.io\/|ghcr.io\/)`).ReplaceAllString(dstImageName, "")
dstImageName = regexp.MustCompile(`(docker.io\/|k8s.gcr.io\/|registry.k8s.io\/|ghcr.io\/)`).ReplaceAllString(dstImageName, "")
} else if len(imgNameSplit) == 2 {
dstImageName = fmt.Sprintf("%s/codefresh/%s", o.DstRegistry.RegistryStr(), imgNameSplit[1])
} else {
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.17
0.5.18

0 comments on commit b02c884

Please sign in to comment.