restructure
This commit is contained in:
parent
04a5b15668
commit
c75e2b2e06
@ -25,6 +25,7 @@
|
||||
"dependencies": {
|
||||
"beautylog": "^5.0.8",
|
||||
"commander": "^2.9.0",
|
||||
"gulp": "^3.9.1",
|
||||
"q": "^1.4.1",
|
||||
"request": "^2.72.0",
|
||||
"shelljs": "^0.7.0",
|
||||
|
@ -1,10 +1,11 @@
|
||||
import * as plugins from "./npmci.plugins"
|
||||
import * as env from "./npmci.env";
|
||||
import {tagDocker} from ".npmci.tag";
|
||||
import {tagDocker} from "./npmci.tag.docker";
|
||||
export let build = function(){
|
||||
let done = plugins.q.defer();
|
||||
done.resolve();
|
||||
return done.promise;
|
||||
}
|
||||
|
||||
let getDockerFiles = function(){};
|
||||
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
import "typings-global";
|
||||
export import beautylog = require("beautylog");
|
||||
export let commander = require("commander");
|
||||
export let gulp = require("gulp");
|
||||
export let q = require("q");
|
||||
export let request = require("request");
|
||||
export let shelljs = require("shelljs");
|
||||
|
@ -1,6 +1,6 @@
|
||||
import "typings-global";
|
||||
import * as plugins from "./npmci.plugins";
|
||||
import * as env from "./npmci.env";
|
||||
import * as NpmciEnv from "./npmci.env";
|
||||
export let dockerTagVersion = function(){
|
||||
if(process.env.CI_BUILD_STAGE == "test"){
|
||||
return "test";
|
||||
@ -9,14 +9,14 @@ export let dockerTagVersion = function(){
|
||||
}
|
||||
}
|
||||
|
||||
export let dockerTag = function(){
|
||||
return dockerRegistry + "/" + repo.user + "/" + repo.repo + ":" + dockerTagVersion() +" .";
|
||||
export let tagDocker = function(){
|
||||
return NpmciEnv.dockerRegistry + "/" + NpmciEnv.repo.user + "/" + NpmciEnv.repo.repo + ":" + dockerTagVersion() +" .";
|
||||
}
|
||||
|
||||
export let dockerTagTest = function(){
|
||||
return dockerRegistry + "/" + repo.user + "/" + repo.repo + ":test .";
|
||||
return NpmciEnv.dockerRegistry + "/" + NpmciEnv.repo.user + "/" + NpmciEnv.repo.repo + ":test .";
|
||||
}
|
||||
|
||||
export let dockerTagRelease = function(){
|
||||
return dockerRegistry + "/" + repo.user + "/" + repo.repo + ":latest .";
|
||||
return NpmciEnv.dockerRegistry + "/" + NpmciEnv.repo.user + "/" + NpmciEnv.repo.repo + ":latest .";
|
||||
}
|
Loading…
Reference in New Issue
Block a user