Change name of deploy target
This commit is contained in:
parent
1aeb2f9016
commit
6b53f583fd
|
@ -48,4 +48,4 @@ notifications:
|
||||||
|
|
||||||
# FIXME this needs refinement, obvs
|
# FIXME this needs refinement, obvs
|
||||||
after_success:
|
after_success:
|
||||||
- "test $EMBER_VERSION == 'default' && test $TRAVIS_PULL_REQUEST && ember deploy prod --verbose"
|
- "test $EMBER_VERSION == 'default' && test $TRAVIS_PULL_REQUEST && ember deploy pull-request --verbose"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
var VALID_DEPLOY_TARGETS = [ //update these to match what you call your deployment targets
|
var VALID_DEPLOY_TARGETS = [ //update these to match what you call your deployment targets
|
||||||
'dev',
|
'dev',
|
||||||
'qa',
|
'qa',
|
||||||
'prod'
|
'pull-request'
|
||||||
];
|
];
|
||||||
|
|
||||||
module.exports = function(deployTarget) {
|
module.exports = function(deployTarget) {
|
||||||
|
@ -26,7 +26,7 @@ module.exports = function(deployTarget) {
|
||||||
ENV.plugins = ['build', 'redis']; // only care about deploying index.html into redis in dev
|
ENV.plugins = ['build', 'redis']; // only care about deploying index.html into redis in dev
|
||||||
}
|
}
|
||||||
|
|
||||||
if (deployTarget === 'qa' || deployTarget === 'prod') {
|
if (deployTarget === 'qa' || deployTarget === 'pull-request') {
|
||||||
ENV.build.environment = 'production';
|
ENV.build.environment = 'production';
|
||||||
ENV.s3.accessKeyId = process.env.AWS_KEY;
|
ENV.s3.accessKeyId = process.env.AWS_KEY;
|
||||||
ENV.s3.secretAccessKey = process.env.AWS_SECRET;
|
ENV.s3.secretAccessKey = process.env.AWS_SECRET;
|
||||||
|
@ -36,7 +36,7 @@ module.exports = function(deployTarget) {
|
||||||
ENV.redis.url = process.env.QA_REDIS_URL;
|
ENV.redis.url = process.env.QA_REDIS_URL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (deployTarget === 'prod') {
|
if (deployTarget === 'pull-request') {
|
||||||
ENV.redis.url = process.env.REDIS_URL;
|
ENV.redis.url = process.env.REDIS_URL;
|
||||||
|
|
||||||
ENV.github = {
|
ENV.github = {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user