add new env file

This commit is contained in:
Philipp Kunz 2016-06-02 13:39:03 +02:00
parent a2a409a1ff
commit 677f730b34
3 changed files with 13 additions and 1 deletions

8
ts/npmci.build.ts Normal file
View File

@ -0,0 +1,8 @@
import "typings-global";
import * as plugins from "./npmci.plugins";
import {bash} from "./npmci.bash";
export let build = function(commandArg){
let done = plugins.q.defer();
return done.promise;
}

3
ts/npmci.env.ts Normal file
View File

@ -0,0 +1,3 @@
export let env = function(){
};

View File

@ -1,5 +1,6 @@
import "typings-global"; import "typings-global";
import * as plugins from "./npmci.plugins"; import * as plugins from "./npmci.plugins";
import {bash} from "./npmci.bash";
let docker = function(){ let docker = function(){
let done = plugins.q.defer(); let done = plugins.q.defer();
@ -7,7 +8,7 @@ let docker = function(){
let dockerRegexResultArray = dockerRegex.exec("process.env.NPMCI_LOGIN_DOCKER"); let dockerRegexResultArray = dockerRegex.exec("process.env.NPMCI_LOGIN_DOCKER");
let username = dockerRegexResultArray[1]; let username = dockerRegexResultArray[1];
let password = dockerRegexResultArray[2]; let password = dockerRegexResultArray[2];
plugins.shelljs.exec("docker login -u " + username + " -p " + password); bash("docker login -u " + username + " -p " + password);
done.resolve(); done.resolve();
return done.promise; return done.promise;
} }