npmci/ts/npmci.tag.docker.ts

22 lines
719 B
TypeScript
Raw Normal View History

2016-06-04 16:41:35 +00:00
import "typings-global";
import * as plugins from "./npmci.plugins";
2016-06-04 23:22:04 +00:00
import * as NpmciEnv from "./npmci.env";
2016-06-04 16:41:35 +00:00
export let dockerTagVersion = function(){
if(process.env.CI_BUILD_STAGE == "test"){
return "test";
} else {
return "latest"
}
}
2016-06-04 23:22:04 +00:00
export let tagDocker = function(){
return NpmciEnv.dockerRegistry + "/" + NpmciEnv.repo.user + "/" + NpmciEnv.repo.repo + ":" + dockerTagVersion() +" .";
2016-06-04 16:41:35 +00:00
}
export let dockerTagTest = function(){
2016-06-04 23:22:04 +00:00
return NpmciEnv.dockerRegistry + "/" + NpmciEnv.repo.user + "/" + NpmciEnv.repo.repo + ":test .";
2016-06-04 16:41:35 +00:00
}
export let dockerTagRelease = function(){
2016-06-04 23:22:04 +00:00
return NpmciEnv.dockerRegistry + "/" + NpmciEnv.repo.user + "/" + NpmciEnv.repo.repo + ":latest .";
2016-06-04 16:41:35 +00:00
}