npmci/ts/npmci.build.ts

11 lines
391 B
TypeScript
Raw Normal View History

2016-06-02 11:39:03 +00:00
import "typings-global";
import * as plugins from "./npmci.plugins";
import {bash} from "./npmci.bash";
export let build = function(commandArg){
let done = plugins.q.defer();
2016-06-02 23:58:37 +00:00
let repo = new plugins.smartstring.GitRepo(process.env.CI_BUILD_REPO);
plugins.shelljs.exec("docker build -t " + repo.user + "/" + repo.repo + ":latest .");
done.resolve();
2016-06-02 11:39:03 +00:00
return done.promise;
}