Skip to content

Commit

Permalink
crane push: print pushed ref@digest to stdout (#1663)
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh authored Apr 20, 2023
1 parent 27a6ad6 commit df72a9a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/crane/cmd/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ func NewCmdPush(options *[]crane.Option) *cobra.Command {
if imageRefs != "" {
return os.WriteFile(imageRefs, []byte(digest.String()), 0600)
}
// TODO(mattmoor): think about printing the digest to standard out
// to facilitate command composition similar to ko build.

// Print the digest of the pushed image to stdout to facilitate command composition.
fmt.Println(digest)

return nil
},
Expand Down

0 comments on commit df72a9a

Please sign in to comment.