Skip to content

Commit

Permalink
Dont' skip latest tag
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Oct 1, 2024
1 parent 254d7b1 commit aad019b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions pkg/cmds/gcp_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,6 @@ fi
}
if ref.Tag == "" {
return fmt.Errorf("image %s has no tag", img)
} else if ref.Tag == "latest" {
continue
}

buf.WriteString("crane cp")
Expand Down
6 changes: 0 additions & 6 deletions pkg/cmds/scripts.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,6 @@ CMD="./images/crane"
}
if ref.Tag == "" {
return fmt.Errorf("image %s has no tag", img)
} else if ref.Tag == "latest" {
continue
}

buf.WriteString("$CMD pull")
Expand Down Expand Up @@ -187,8 +185,6 @@ CMD="./crane"
}
if ref.Tag == "" {
return fmt.Errorf("image %s has no tag", img)
} else if ref.Tag == "latest" {
continue
}

buf.WriteString("$CMD push")
Expand Down Expand Up @@ -246,8 +242,6 @@ CMD="./crane"
}
if ref.Tag == "" {
return fmt.Errorf("image %s has no tag", img)
} else if ref.Tag == "latest" {
continue
}

buf.WriteString("$CMD cp")
Expand Down

0 comments on commit aad019b

Please sign in to comment.