We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b74ef7f commit c27194bCopy full SHA for c27194b
1 file changed
container/go/cmd/pusher/pusher.go
@@ -121,11 +121,21 @@ func main() {
121
log.Printf("Destination %s was resolved to %s after stamping.", *dst, stamped)
122
}
123
124
+ digest, err := img.Digest()
125
+ if err != nil {
126
+ log.Printf("Failed to digest image: %v", err)
127
+ }
128
+
129
if err := push(stamped, img); err != nil {
130
log.Fatalf("Error pushing image to %s: %v", stamped, err)
131
132
- log.Printf("Successfully pushed %s image to %s", *format, stamped)
133
+ digestStr := ""
134
+ if !strings.Contains(stamped, "@") {
135
+ digestStr = fmt.Sprintf(" - %s@%s", strings.Split(stamped, ":")[0], digest)
136
137
138
+ log.Printf("Successfully pushed %s image to %s%s", *format, stamped, digestStr)
139
140
141
// digestExists checks whether an image's digest exists in a repository.
0 commit comments