allow AWS creds to be specified in the environment, so that codeship can push to S3 after a build success

This commit is contained in:
Spencer Alger
2014-01-17 11:27:18 -07:00
parent af57b9e49e
commit c0948b2b8c

View File

@ -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: {