restructure

This commit is contained in:
Philipp Kunz 2016-06-05 01:22:04 +02:00
parent 04a5b15668
commit c75e2b2e06
4 changed files with 10 additions and 7 deletions

View File

@ -25,6 +25,7 @@
"dependencies": { "dependencies": {
"beautylog": "^5.0.8", "beautylog": "^5.0.8",
"commander": "^2.9.0", "commander": "^2.9.0",
"gulp": "^3.9.1",
"q": "^1.4.1", "q": "^1.4.1",
"request": "^2.72.0", "request": "^2.72.0",
"shelljs": "^0.7.0", "shelljs": "^0.7.0",

View File

@ -1,10 +1,11 @@
import * as plugins from "./npmci.plugins" import * as plugins from "./npmci.plugins"
import * as env from "./npmci.env"; import * as env from "./npmci.env";
import {tagDocker} from ".npmci.tag"; import {tagDocker} from "./npmci.tag.docker";
export let build = function(){ export let build = function(){
let done = plugins.q.defer(); let done = plugins.q.defer();
done.resolve(); done.resolve();
return done.promise; return done.promise;
} }
let getDockerFiles = function(){};

View File

@ -1,6 +1,7 @@
import "typings-global"; import "typings-global";
export import beautylog = require("beautylog"); export import beautylog = require("beautylog");
export let commander = require("commander"); export let commander = require("commander");
export let gulp = require("gulp");
export let q = require("q"); export let q = require("q");
export let request = require("request"); export let request = require("request");
export let shelljs = require("shelljs"); export let shelljs = require("shelljs");

View File

@ -1,6 +1,6 @@
import "typings-global"; import "typings-global";
import * as plugins from "./npmci.plugins"; import * as plugins from "./npmci.plugins";
import * as env from "./npmci.env"; import * as NpmciEnv from "./npmci.env";
export let dockerTagVersion = function(){ export let dockerTagVersion = function(){
if(process.env.CI_BUILD_STAGE == "test"){ if(process.env.CI_BUILD_STAGE == "test"){
return "test"; return "test";
@ -9,14 +9,14 @@ export let dockerTagVersion = function(){
} }
} }
export let dockerTag = function(){ export let tagDocker = function(){
return dockerRegistry + "/" + repo.user + "/" + repo.repo + ":" + dockerTagVersion() +" ."; return NpmciEnv.dockerRegistry + "/" + NpmciEnv.repo.user + "/" + NpmciEnv.repo.repo + ":" + dockerTagVersion() +" .";
} }
export let dockerTagTest = function(){ 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(){ export let dockerTagRelease = function(){
return dockerRegistry + "/" + repo.user + "/" + repo.repo + ":latest ."; return NpmciEnv.dockerRegistry + "/" + NpmciEnv.repo.user + "/" + NpmciEnv.repo.repo + ":latest .";
} }