mirror of https://github.com/sipwise/kibana.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
768 B
31 lines
768 B
module.exports = function(grunt) {
|
|
|
|
// build, then zip and upload to s3
|
|
grunt.registerTask('distribute', [
|
|
'distribute:load_s3_config',
|
|
'build',
|
|
'compress:zip',
|
|
'compress:tgz',
|
|
's3:dist',
|
|
'clean:temp'
|
|
]);
|
|
|
|
// build, then zip and upload to s3
|
|
grunt.registerTask('release', [
|
|
'distribute:load_s3_config',
|
|
'build',
|
|
'compress:zip_release',
|
|
'compress:tgz_release',
|
|
's3:release',
|
|
'clean:temp'
|
|
]);
|
|
|
|
// collect the key and secret from the .aws-config.json file, finish configuring the s3 task
|
|
grunt.registerTask('distribute:load_s3_config', function () {
|
|
var config = grunt.file.readJSON('.aws-config.json');
|
|
grunt.config('s3.options', {
|
|
key: config.key,
|
|
secret: config.secret
|
|
});
|
|
});
|
|
} |