[grunt/s3] upgrade to aws_s3 package, grunt-s3 package is broken

This commit is contained in:
spalger
2017-11-14 17:00:06 -06:00
parent db50cde805
commit 9b844b32b0
3 changed files with 12 additions and 11 deletions

View File

@ -57,7 +57,7 @@ module.exports = function (grunt) {
'copy:dist_to_named_dir',
'compress:' + type + '_zip',
'compress:' + type + '_tarball',
's3:upload_archives'
'aws_s3:upload_archives'
]);
});

View File

@ -5,20 +5,21 @@ try {
module.exports = {
upload_archives: {
upload: [
files: [
{
src: '<%= distDir %>/archives/*',
expand: true,
cwd: '<%= distDir %>/archives',
src: '*',
dest: 'elasticsearch/elasticsearch-js/'
}
},
],
options: {
key: config.key || process.env.AWS_KEY,
secret: config.secret || process.env.AWS_SECRET,
accessKeyId: config.key || process.env.AWS_KEY,
secretAccessKey: config.secret || process.env.AWS_SECRET,
bucket: 'download.elasticsearch.org',
access: 'public-read',
headers: {
'X-Content-Type-Options': 'nosniff',
'Content-Disposition': 'attachment'
params: {
'ContentDisposition': 'attachment'
}
}
}