lib/dockly/build_cache/base.rb in dockly-3.2.0.pre.1 vs lib/dockly/build_cache/base.rb in dockly-3.3.0

- old
+ new

@@ -87,14 +87,20 @@ parameter_commands[command] = nil end def push_to_s3(file) ensure_present! :s3_bucket, :s3_object_prefix - connection.put_object(bucket: s3_bucket, key: s3_object(hash_output), body: file) + connection.put_object( + bucket: s3_bucket, + key: s3_object(hash_output), + body: file, + acl: 'bucket-owner-full-control', + ) connection.copy_object( copy_source: [s3_bucket, s3_object(hash_output)].join('/'), bucket: s3_bucket, - key: s3_object('latest') + key: s3_object('latest'), + acl: 'bucket-owner-full-control', ) end def file_output(file) File.join(File.dirname(output_dir), File.basename(file.path))