Skip to content

Commit

Permalink
update imageSink
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 committed Nov 8, 2024
1 parent d2e7e4a commit c8635e3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/pipeline/sink/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,16 +150,16 @@ func (s *ImageSink) Close() error {
return nil
}

func (s *ImageSink) UploadManifest(filepath string) (string, string, bool, error) {
func (s *ImageSink) UploadManifest(filepath string) (string, bool, error) {
if s.DisableManifest && !s.ManifestRequired() {
return "", "", false, nil
return "", false, nil
}

storagePath := path.Join(s.StorageDir, path.Base(filepath))
location, _, presignedUrl, err := s.Upload(filepath, storagePath, types.OutputTypeJSON, false)
location, _, err := s.Upload(filepath, storagePath, types.OutputTypeJSON, false)
if err != nil {
return "", "", false, err
return "", false, err
}

return location, presignedUrl, true, nil
return location, true, nil
}

0 comments on commit c8635e3

Please sign in to comment.