Append filename to S3 object upload

This commit is contained in:
Achilleas Koutsou 2021-05-27 20:15:24 +02:00 committed by Tom Gundersen
parent e5b28c0bb3
commit 5556137daf

View file

@ -254,6 +254,7 @@ func (impl *OSBuildJobImpl) Run(job worker.Job) error {
if key == "" {
key = uuid.New().String()
}
key += "-" + options.Filename
_, err = a.Upload(path.Join(outputDirectory, exportPath, options.Filename), options.Bucket, key)
if err != nil {