add new env file
This commit is contained in:
parent
a2a409a1ff
commit
677f730b34
8
ts/npmci.build.ts
Normal file
8
ts/npmci.build.ts
Normal 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
3
ts/npmci.env.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export let env = function(){
|
||||||
|
|
||||||
|
};
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user