mirror of
https://github.com/videojs/video.js.git
synced 2025-05-31 23:19:45 +02:00
Moved s3 config to environment variables
This commit is contained in:
parent
dd24d17372
commit
5bd0338d2e
13
Gruntfile.js
13
Gruntfile.js
@ -6,12 +6,6 @@ module.exports = function(grunt) {
|
|||||||
uglify = require('uglify-js');
|
uglify = require('uglify-js');
|
||||||
exec = require('child_process').exec;
|
exec = require('child_process').exec;
|
||||||
|
|
||||||
try {
|
|
||||||
s3 = grunt.file.readJSON('.s3config.json');
|
|
||||||
} catch(e) {
|
|
||||||
s3 = {};
|
|
||||||
}
|
|
||||||
|
|
||||||
verParts = pkg.version.split('.');
|
verParts = pkg.version.split('.');
|
||||||
version = {
|
version = {
|
||||||
full: pkg.version,
|
full: pkg.version,
|
||||||
@ -92,7 +86,12 @@ module.exports = function(grunt) {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
s3: {
|
s3: {
|
||||||
options: s3,
|
options: {
|
||||||
|
key: process.env.VJS_S3_KEY,
|
||||||
|
secret: process.env.VJS_S3_SECRET,
|
||||||
|
bucket: process.env.VJS_S3_BUCKET,
|
||||||
|
access: 'public-read'
|
||||||
|
},
|
||||||
minor: {
|
minor: {
|
||||||
upload: [
|
upload: [
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user