Append filename to S3 object upload
This commit is contained in:
parent
e5b28c0bb3
commit
5556137daf
1 changed files with 1 additions and 0 deletions
|
|
@ -254,6 +254,7 @@ func (impl *OSBuildJobImpl) Run(job worker.Job) error {
|
||||||
if key == "" {
|
if key == "" {
|
||||||
key = uuid.New().String()
|
key = uuid.New().String()
|
||||||
}
|
}
|
||||||
|
key += "-" + options.Filename
|
||||||
|
|
||||||
_, err = a.Upload(path.Join(outputDirectory, exportPath, options.Filename), options.Bucket, key)
|
_, err = a.Upload(path.Join(outputDirectory, exportPath, options.Filename), options.Bucket, key)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue