diff --git a/pkg/meta/boltdb/boltdb.go b/pkg/meta/boltdb/boltdb.go index 0cb25b0b3a..7815343d39 100644 --- a/pkg/meta/boltdb/boltdb.go +++ b/pkg/meta/boltdb/boltdb.go @@ -212,6 +212,8 @@ func (bdw *BoltDB) SetRepoReference(ctx context.Context, repo string, reference PushTimestamp: timestamppb.Now(), PushedBy: userid, } + } else if protoRepoMeta.Statistics[imageMeta.Digest.String()].PushTimestamp.AsTime().IsZero() { + protoRepoMeta.Statistics[imageMeta.Digest.String()].PushTimestamp = timestamppb.Now() } if _, ok := protoRepoMeta.Signatures[imageMeta.Digest.String()]; !ok {