From c0948b2b8ca54b3741eefec17d42ad30b640baa1 Mon Sep 17 00:00:00 2001 From: Spencer Alger Date: Fri, 17 Jan 2014 11:27:18 -0700 Subject: [PATCH] allow AWS creds to be specified in the environment, so that codeship can push to S3 after a build success --- grunt/config/s3.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/grunt/config/s3.js b/grunt/config/s3.js index d0fe58cf1..a83c43ecc 100644 --- a/grunt/config/s3.js +++ b/grunt/config/s3.js @@ -3,7 +3,6 @@ try { config = require('../../.aws-config.json'); } catch (e) {} - module.exports = { upload_archives: { upload: [ @@ -13,8 +12,8 @@ module.exports = { } ], options: { - key: config.key, - secret: config.secret, + key: config.key || process.env.AWS_KEY, + secret: config.secret || process.env.AWS_SECRET, bucket: 'download.elasticsearch.org', access: 'public-read', headers: {