Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
If we can't deploy - fail (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
aintgoin2goa authored Jul 10, 2017
1 parent 6da92c4 commit 90393a3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tasks/ship.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,15 @@ function task (opts) {
log.info('Deploy to ' + pipelineName);
let apps = yield pipelines.getApps(pipelineName);
if(!apps.staging){
log.error('No staging app found');
return;
throw new Error('No staging app found');
}

if(!apps.production.eu){
log.error('No EU production app found');
return;
throw new Error('No EU production app found');
}

if(opts.multiregion && !apps.production.us){
log.error('No US App Found - add --no-multiregion if it does not exist yet');
return;
throw new Error('No US App Found - add --no-multiregion if it does not exist yet');
}

log.info('Found apps %j', apps);
Expand Down

0 comments on commit 90393a3

Please sign in to comment.