more docker
This commit is contained in:
parent
51334c297d
commit
6b72652c7a
16
dist/npmci.build.docker.d.ts
vendored
16
dist/npmci.build.docker.d.ts
vendored
@ -1 +1,17 @@
|
||||
export declare let build: () => any;
|
||||
export declare class Dockerfile {
|
||||
filePath: string;
|
||||
buildTag: string;
|
||||
repo: string;
|
||||
version: string;
|
||||
content: string;
|
||||
baseImage: string;
|
||||
constructor(options: {
|
||||
filePath?: string;
|
||||
fileContents?: string | Buffer;
|
||||
read?: boolean;
|
||||
});
|
||||
build(): void;
|
||||
push(): void;
|
||||
}
|
||||
export declare let dockerTag: (repoArg: string, versionArg: string) => string;
|
||||
|
77
dist/npmci.build.docker.js
vendored
77
dist/npmci.build.docker.js
vendored
File diff suppressed because one or more lines are too long
5
dist/npmci.env.d.ts
vendored
5
dist/npmci.env.d.ts
vendored
@ -1,6 +1,9 @@
|
||||
import "typings-global";
|
||||
import { GitRepo } from "smartstring";
|
||||
import { Dockerfile } from "./npmci.build.docker";
|
||||
export declare let repo: GitRepo;
|
||||
export declare let dockerTestTag: string;
|
||||
export declare let dockerReleaseTag: string;
|
||||
export declare let dockerRegistry: string;
|
||||
export declare let dockerRegistry: any;
|
||||
export declare let dockerImages: any;
|
||||
export declare let dockerFiles: Dockerfile[];
|
||||
|
3
dist/npmci.env.js
vendored
3
dist/npmci.env.js
vendored
@ -2,6 +2,5 @@
|
||||
require("typings-global");
|
||||
var smartstring_1 = require("smartstring");
|
||||
exports.repo = new smartstring_1.GitRepo(process.env.CI_BUILD_REPO);
|
||||
exports.dockerRegistry = "docker.io"; // will be set by npmci.prepare
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWNpLmVudi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsUUFBTyxnQkFBZ0IsQ0FBQyxDQUFBO0FBR3hCLDRCQUFzQixhQUFhLENBQUMsQ0FBQTtBQUV6QixZQUFJLE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Z2luc1wiO1xuaW1wb3J0IHtHaXRSZXBvfSBmcm9tIFwic21hcnRzdHJpbmdcIjtcbmltcG9ydCB7RG9ja2VyZmlsZX0gZnJvbSBcIi4vbnBtY2kuYnVpbGQuZG9ja2VyXCJcblxuZXhwb3J0IGxldCByZXBvID0gbmV3IEdpdFJlcG8ocHJvY2Vzcy5lbnYuQ0lfQlVJTERfUkVQTyk7XG5leHBvcnQgbGV0IGRvY2tlclRlc3RUYWc6c3RyaW5nO1xuZXhwb3J0IGxldCBkb2NrZXJSZWxlYXNlVGFnOnN0cmluZztcblxuZXhwb3J0IGxldCBkb2NrZXJSZWdpc3RyeTsgLy8gd2lsbCBiZSBzZXQgYnkgbnBtY2kucHJlcGFyZVxuZXhwb3J0IGxldCBkb2NrZXJJbWFnZXM7XG5leHBvcnQgbGV0IGRvY2tlckZpbGVzOkRvY2tlcmZpbGVbXTtcblxuIl19
|
||||
|
0
dist/npmci.get.d.ts
vendored
Normal file
0
dist/npmci.get.d.ts
vendored
Normal file
3
dist/npmci.get.js
vendored
Normal file
3
dist/npmci.get.js
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJucG1jaS5nZXQuanMiLCJzb3VyY2VzQ29udGVudCI6W119
|
4
dist/npmci.plugins.d.ts
vendored
4
dist/npmci.plugins.d.ts
vendored
@ -1,9 +1,11 @@
|
||||
import "typings-global";
|
||||
export import beautylog = require("beautylog");
|
||||
export declare let commander: any;
|
||||
export declare let gulp: any;
|
||||
export import path = require("path");
|
||||
export declare let q: any;
|
||||
export declare let request: any;
|
||||
export declare let shelljs: any;
|
||||
export declare let smartssh: any;
|
||||
export import smartssh = require("smartssh");
|
||||
export import smartstring = require("smartstring");
|
||||
export import smartfile = require("smartfile");
|
||||
|
4
dist/npmci.plugins.js
vendored
4
dist/npmci.plugins.js
vendored
@ -2,6 +2,8 @@
|
||||
require("typings-global");
|
||||
exports.beautylog = require("beautylog");
|
||||
exports.commander = require("commander");
|
||||
exports.gulp = require("gulp");
|
||||
exports.path = require("path");
|
||||
exports.q = require("q");
|
||||
exports.request = require("request");
|
||||
exports.shelljs = require("shelljs");
|
||||
@ -9,4 +11,4 @@ exports.smartssh = require("smartssh");
|
||||
exports.smartstring = require("smartstring");
|
||||
exports.smartfile = require("smartfile");
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWNpLnBsdWdpbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUNWLGlCQUFTLFdBQVcsV0FBVyxDQUFDLENBQUM7QUFDcEMsaUJBQVMsR0FBRyxPQUFPLENBQUMsV0FBVyxDQUFDLENBQUM7QUFDakMsU0FBQyxHQUFHLE9BQU8sQ0FBQyxHQUFHLENBQUMsQ0FBQztBQUNqQixlQUFPLEdBQUcsT0FBTyxDQUFDLFNBQVMsQ0FBQyxDQUFDO0FBQzdCLGVBQU8sR0FBRyxPQUFPLENBQUMsU0FBUyxDQUFDLENBQUM7QUFDN0IsZ0JBQVEsR0FBRyxPQUFPLENBQUMsVUFBVSxDQUFDLENBQUM7QUFDNUIsbUJBQVcsV0FBVyxhQUFhLENBQUMsQ0FBQztBQUNyQyxpQkFBUyxXQUFXLFdBQVcsQ0FBQyxDQUFDIiwiZmlsZSI6Im5wbWNpLnBsdWdpbnMuanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgXCJ0eXBpbmdzLWdsb2JhbFwiO1xuZXhwb3J0IGltcG9ydCBiZWF1dHlsb2cgPSByZXF1aXJlKFwiYmVhdXR5bG9nXCIpO1xuZXhwb3J0IGxldCBjb21tYW5kZXIgPSByZXF1aXJlKFwiY29tbWFuZGV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sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBcInR5cGluZ3MtZ2xvYmFsXCI7XG5leHBvcnQgaW1wb3J0IGJlYXV0eWxvZyA9IHJlcXVpcmUoXCJiZWF1dHlsb2dcIik7XG5leHBvcnQgbGV0IGNvbW1hbmRlciA9IHJlcXVpcmUoXCJjb21tYW5kZXJcIik7XG5leHBvcnQgbGV0IGd1bHAgPSByZXF1aXJlKFwiZ3VscFwiKTtcbmV4cG9ydCBpbXBvcnQgcGF0aCA9IHJlcXVpcmUoXCJwYXRoXCIpO1xuZXhwb3J0IGxldCBxID0gcmVxdWlyZShcInFcIik7XG5leHBvcnQgbGV0IHJlcXVlc3QgPSByZXF1aXJlKFwicmVxdWVzdFwiKTtcbmV4cG9ydCBsZXQgc2hlbGxqcyA9IHJlcXVpcmUoXCJzaGVsbGpzXCIpO1xuZXhwb3J0IGltcG9ydCBzbWFydHNzaCA9IHJlcXVpcmUoXCJzbWFydHNzaFwiKTtcbmV4cG9ydCBpbXBvcnQgc21hcnRzdHJpbmcgPSByZXF1aXJlKFwic21hcnRzdHJpbmdcIik7XG5leHBvcnQgaW1wb3J0IHNtYXJ0ZmlsZSA9IHJlcXVpcmUoXCJzbWFydGZpbGVcIik7Il19
|
||||
|
5
dist/npmci.prepare.js
vendored
5
dist/npmci.prepare.js
vendored
File diff suppressed because one or more lines are too long
9
dist/npmci.publish.js
vendored
9
dist/npmci.publish.js
vendored
@ -3,7 +3,6 @@ require("typings-global");
|
||||
var plugins = require("./npmci.plugins");
|
||||
var npmci_prepare_1 = require("./npmci.prepare");
|
||||
var npmci_bash_1 = require("./npmci.bash");
|
||||
var env = require("./npmci.env");
|
||||
exports.publish = function (serviceArg) {
|
||||
if (serviceArg === void 0) { serviceArg = "npm"; }
|
||||
switch (serviceArg) {
|
||||
@ -25,13 +24,7 @@ var publishNpm = function () {
|
||||
};
|
||||
var publishDocker = function () {
|
||||
var done = plugins.q.defer();
|
||||
npmci_prepare_1.prepare("docker")
|
||||
.then(function () {
|
||||
npmci_bash_1.bash;
|
||||
npmci_bash_1.bash("docker push " + env.dockerTag());
|
||||
done.resolve();
|
||||
});
|
||||
return done.promise;
|
||||
};
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWNpLnB1Ymxpc2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUN4QixJQUFZLE9BQU8sV0FBTSxpQkFBaUIsQ0FBQyxDQUFBO0FBQzNDLDhCQUFzQixpQkFBaUIsQ0FBQyxDQUFBO0FBQ3hDLDJCQUFtQixjQUFjLENBQUMsQ0FBQTtBQUNsQyxJQUFZLEdBQUcsV0FBTSxhQUFhLENBQUMsQ0FBQTtBQUV4QixlQUFPLEdBQUcsVUFBQyxVQUF5QjtJQUF6QiwwQkFBeUIsR0FBekIsa0JBQXlCO0lBQzNDLE1BQU0sQ0FBQyxDQUFDLFVBQVUsQ0FBQyxDQUFBLENBQUM7UUFDaEIsS0FBSyxLQUFLO1lBQ04sTUFBTSxDQUFDLFVBQVUsRUFBRSxDQUFDO1FBQ3hCLEtBQUssUUFBUTtZQUNULE1BQU0sQ0FBQyxhQUFhLEVBQUUsQ0FBQztJQUMvQixDQUFDO0FBQ0wsQ0FBQyxDQUFDO0FBRUYsSUFBSSxVQUFVLEdBQUk7SUFDZCxJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQzdCLHVCQUFPLENBQUMsS0FBSyxDQUFDO1NBQ1QsSUFBSSxDQUFDO1FBQ0YsaUJBQUksQ0FBQyxhQUFhLENBQUMsQ0FBQztRQUNwQixPQUFPLENBQUMsU0FBUyxDQUFDLEVBQUUsQ0FBQyxPQUFPLENBQUMsQ0FBRTtRQUMvQixJQUFJLENBQUMsT0FBTyxFQUFFLENBQUM7SUFDbkIs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25wbWNpLmJhc2hcIjtcbmltcG9ydCAqIGFzIGVudiBmcm9tIFwiLi9ucG1jaS5lbnZcIjtcblxuZXhwb3J0IGxldCBwdWJsaXNoID0gKHNlcnZpY2VBcmc6c3RyaW5nID0gXCJucG1cIikgPT4ge1xuICAgIHN3aXRjaCAoc2VydmljZUFyZyl7XG4gICAgICAgIGNhc2UgXCJucG1cIjogXG4gICAgICAgICAgICByZXR1cm4gcHVibGlzaE5wbSgpO1xuICAgICAgICBjYXNlIFwiZG9ja2VyXCI6XG4gICAgICAgICAgICByZXR1cm4gcHVibGlzaERvY2tlcigpO1xuICAgIH1cbn07XG5cbmxldCBwdWJsaXNoTnBtICA9IGZ1bmN0aW9uKCl7XG4gICAgbGV0IGRvbmUgPSBwbHVnaW5zLnEuZGVmZXIoKTtcbiAgICBwcmVwYXJlKFwibnBtXCIpXG4gICAgICAgIC50aGVuKGZ1bmN0aW9uKCl7XG4gICAgICAgICAgICBiYXNoKFwibnBtIHB1Ymxpc2hcIik7XG4gICAgICAgICAgICBwbHVnaW5zLmJlYXV0eWxvZy5vayhcIkRvbmUhXCIpIDtcbiAgICAgICAgICAgIGRvbmUucmVzb2x2ZSgpO1xuICAgICAgICB9KTtcbiAgIHJldHVybiBkb25lLnByb21pc2U7XG59XG5cbmxldCBwdWJsaXNoRG9ja2VyID0gZnVuY3Rpb24oKXtcbiAgICBsZXQgZG9uZSA9IHBsdWdpbnMucS5kZWZlcigpO1xuICAgIHJldHVybiBkb25lLnByb21pc2U7XG59OyJdfQ==
|
||||
|
5
dist/npmci.tag.docker.d.ts
vendored
5
dist/npmci.tag.docker.d.ts
vendored
@ -1,5 +0,0 @@
|
||||
import "typings-global";
|
||||
export declare let dockerTagVersion: () => string;
|
||||
export declare let dockerTag: () => string;
|
||||
export declare let dockerTagTest: () => string;
|
||||
export declare let dockerTagRelease: () => string;
|
21
dist/npmci.tag.docker.js
vendored
21
dist/npmci.tag.docker.js
vendored
@ -1,21 +0,0 @@
|
||||
"use strict";
|
||||
require("typings-global");
|
||||
exports.dockerTagVersion = function () {
|
||||
if (process.env.CI_BUILD_STAGE == "test") {
|
||||
return "test";
|
||||
}
|
||||
else {
|
||||
return "latest";
|
||||
}
|
||||
};
|
||||
exports.dockerTag = function () {
|
||||
return dockerRegistry + "/" + repo.user + "/" + repo.repo + ":" + exports.dockerTagVersion() + " .";
|
||||
};
|
||||
exports.dockerTagTest = function () {
|
||||
return dockerRegistry + "/" + repo.user + "/" + repo.repo + ":test .";
|
||||
};
|
||||
exports.dockerTagRelease = function () {
|
||||
return dockerRegistry + "/" + repo.user + "/" + repo.repo + ":latest .";
|
||||
};
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWNpLnRhZy5kb2NrZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUdiLHdCQUFnQixHQUFHO0lBQzFCLEVBQUUsQ0FBQSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsY0FBYyxJQUFJLE1BQU0sQ0FBQyxDQUFBLENBQUM7UUFDckMsTUFBTSxDQUFDLE1BQU0sQ0FBQztJQUNsQixDQUFDO0lBQUMsSUFBSSxDQUFDLENBQUM7UUFDSixNQUFNLENBQUMsUUFBUSxDQUFBO0lBQ25CLENBQUM7QUFDTCxDQUFDLENBQUE7QUFFVSxpQkFBUyxHQUFHO0lBQ25CLE1BQU0sQ0FBQyxjQUFjLEdBQUcsR0FBRyxHQUFHLElBQUksQ0FBQyxJQUFJLEdBQUcsR0FBRyxHQUFHLElBQUksQ0FBQyxJQUFJLEdBQUcsR0FBRyxHQUFHLHdCQUFnQixFQUFFLEdBQUUsSUFBSSxDQUFDO0FBQy9GLENBQUMsQ0FBQTtBQUVVLHFCQUFhLEdBQUc7SUFDdkIsTUFBTSxDQUFDLGNBQWMsR0FBRyxHQUFHLEdBQUcsS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3QgLlwiO1xufVxuXG5leHBvcnQgbGV0IGRvY2tlclRhZ1JlbGVhc2UgPSBmdW5jdGlvbigpe1xuICAgIHJldHVybiBkb2NrZXJSZWdpc3RyeSArIFwiL1wiICsgcmVwby51c2VyICsgXCIvXCIgKyByZXBvLnJlcG8gKyBcIjpsYXRlc3QgLlwiO1xufSJdfQ==
|
4
dist/npmci.test.js
vendored
4
dist/npmci.test.js
vendored
@ -3,7 +3,6 @@ require("typings-global");
|
||||
var plugins = require("./npmci.plugins");
|
||||
var npmci_bash_1 = require("./npmci.bash");
|
||||
var npmci_install_1 = require("./npmci.install");
|
||||
var env = require("./npmci.env");
|
||||
exports.test = function (versionArg) {
|
||||
var done = plugins.q.defer();
|
||||
if (versionArg == "docker") {
|
||||
@ -33,9 +32,8 @@ var npmDependencies = function () {
|
||||
};
|
||||
var testDocker = function () {
|
||||
var done = plugins.q.defer();
|
||||
plugins.shelljs.exec("docker run --name " + env.repo.repo + " " + env.dockerTag());
|
||||
done.resolve();
|
||||
return done.promise;
|
||||
};
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWNpLnRlc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUN4QixJQUFZLE9BQU8sV0FBTSxpQkFBaUIsQ0FBQyxDQUFBO0FBQzNDLDJCQUFtQixjQUFjLENBQUMsQ0FBQTtBQUNsQyw4QkFBc0IsaUJBQWlCLENBQUMsQ0FBQTtBQUN4QyxJQUFZLEdBQUcsV0FBTSxhQUFhLENBQUMsQ0FBQTtBQUV4QixZQUFJLEdBQUcsVUFBQyxVQUFVO0lBQ3pCLElBQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDN0IsRUFBRSxDQUFBLENBQUMsVUFBVSxJQUFJLFFBQVEsQ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ICAgICAgIHBsdWdpbnMuYmVhdXR5bG9nLnN1Y2Nlc3MoXCJ0ZXN0IGZpbmlzaGVkXCIpO1xuICAgICAgICAgICAgICAgIGRvbmUucmVzb2x2ZSgpO1xuICAgICAgICAgICAgfSk7XG4gICAgfVxuICAgIHJldHVybiBkb25lLnByb21pc2U7XG59XG5cbmxldCBucG1EZXBlbmRlbmNpZXMgPSBmdW5jdGlvbigpe1xuICAgIGxldCBkb25lID0gcGx1Z2lucy5xLmRlZmVyKCk7XG4gICAgcGx1Z2lucy5iZWF1dHlsb2cuaW5mbyhcIm5vdyBpbnN0YWxsaW5nIGRlcGVuZGVuY2llczpcIik7XG4gICAgYmFzaChcIm5wbSBpbnN0YWxsXCIpO1xuICAgIGRvbmUucmVzb2x2ZSgpO1xuICAgIHJldHVybiBkb25lLnByb21pc2U7XG59XG5cbmxldCB0ZXN0RG9ja2VyID0gZnVuY3Rpb24oKXtcbiAgICBsZXQgZG9uZSA9IHBsdWdpbnMucS5kZWZlcigpO1xuICAgIFxuICAgIGRvbmUucmVzb2x2ZSgpO1xuICAgIHJldHVybiBkb25lLnByb21pc2U7XG59XG5cbiJdfQ==
|
||||
|
@ -34,7 +34,7 @@ let npmDependencies = function(){
|
||||
|
||||
let testDocker = function(){
|
||||
let done = plugins.q.defer();
|
||||
plugins.shelljs.exec("docker run --name " + env.repo.repo + " " + env.dockerTag());
|
||||
|
||||
done.resolve();
|
||||
return done.promise;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user