diff --git a/pkg/build/gobuild.go b/pkg/build/gobuild.go index 6da01e0ac7..f220d4eef6 100644 --- a/pkg/build/gobuild.go +++ b/pkg/build/gobuild.go @@ -889,9 +889,7 @@ func (g *gobuild) Build(ctx context.Context, s string) (Result, error) { anns := map[string]string{ specsv1.AnnotationBaseImageDigest: baseDigest.String(), - } - if _, ok := baseRef.(name.Tag); ok { - anns[specsv1.AnnotationBaseImageName] = baseRef.Name() + specsv1.AnnotationBaseImageName: baseRef.Name(), } base = mutate.Annotations(base, anns).(Result) }