diff --git a/internal/commands/UploadManifest.go b/internal/commands/UploadManifest.go index 4784dba..f5a019c 100644 --- a/internal/commands/UploadManifest.go +++ b/internal/commands/UploadManifest.go @@ -42,6 +42,8 @@ func HandleUploadManifest(ctx context.Context, command UploadManifest) (*UploadM return nil, err } + dbContext.RepositoryBlobs().Insert(repositories.NewRepositoryBlob(command.RepositoryId, blob.GetId())) + if strings.HasPrefix(command.Reference, "sha256:") && command.Reference != command.Digest { return nil, ociError.NewOciError(ociError.DigestInvalid) }