diff --git a/dist/mod_prepare/index.js b/dist/mod_prepare/index.js index bb52670..363aa40 100644 --- a/dist/mod_prepare/index.js +++ b/dist/mod_prepare/index.js @@ -34,7 +34,7 @@ let npm = () => __awaiter(this, void 0, void 0, function* () { */ let docker = () => __awaiter(this, void 0, void 0, function* () { env.setDockerRegistry('docker.io'); // TODO: checkup why we set this here - // handle other registries + // handle registries plugins.smartparam.forEachMinimatch(process.env, 'NPMCI_LOGIN_DOCKER*', (envString) => __awaiter(this, void 0, void 0, function* () { let dockerRegexResultArray = process.env.NPMCI_LOGIN_DOCKER.split('|'); if (dockerRegexResultArray.length !== 3) { @@ -51,6 +51,7 @@ let docker = () => __awaiter(this, void 0, void 0, function* () { else { yield npmci_bash_1.bash(`docker login -u ${username} -p ${password} ${registry}`); } + plugins.beautylog.success(`docker authenticated for ${registry}!`); })); // Always login to GitLab Registry yield dockerGitlab(); @@ -89,4 +90,4 @@ exports.prepare = (serviceArg) => __awaiter(this, void 0, void 0, function* () { break; } }); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9tb2RfcHJlcGFyZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEseUNBQXdDO0FBQ3hDLDhDQUFvQztBQUNwQyxvQ0FBbUM7QUFDbkMsMkNBQTBDO0FBUzFDOztHQUVHO0FBQ0gsSUFBSSxHQUFHLEdBQUc7SUFDUixJQUFJLFdBQVcsR0FBVyxtQ0FBbUMsQ0FBQTtJQUM3RCxJQUFJLFFBQVEsR0FBVyxPQUFPLENBQUMsR0FBRyxDQUFDLGVBQWUsQ0FBQTtJQUNsRCxJQUFJLGVBQWUsR0FBVyxXQUFXLEdBQUcsUUFBUSxDQUFBO0lBQ3BELEVBQUUsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUM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U8sR0FBRyxDQUFPLFVBQXdCO0lBQ2xELE1BQU0sQ0FBQyxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUM7UUFDbkIsS0FBSyxLQUFLO1lBQ1IsTUFBTSxDQUFDLE1BQU0sR0FBRyxFQUFFLENBQUE7UUFDcEIsS0FBSyxRQUFRO1lBQ1gsTUFBTSxDQUFDLE1BQU0sTUFBTSxFQUFFLENBQUE7UUFDdkIsS0FBSyxlQUFlO1lBQ2xCLE1BQU0sQ0FBQyxNQUFNLFlBQVksRUFBRSxDQUFBO1FBQzdCLEtBQUssS0FBSztZQUNSLE1BQU0sQ0FBQyxNQUFNLEdBQUcsRUFBRSxDQUFBO1FBQ3BCO1lBQ0UsS0FBSyxDQUFBO0lBQ1QsQ0FBQztBQUNILENBQUMsQ0FBQSxDQUFBIn0= \ No newline at end of file diff --git a/ts/mod_prepare/index.ts b/ts/mod_prepare/index.ts index f463212..fecf024 100644 --- a/ts/mod_prepare/index.ts +++ b/ts/mod_prepare/index.ts @@ -33,7 +33,7 @@ let npm = async () => { let docker = async () => { env.setDockerRegistry('docker.io') // TODO: checkup why we set this here - // handle other registries + // handle registries plugins.smartparam.forEachMinimatch(process.env, 'NPMCI_LOGIN_DOCKER*', async (envString) => { let dockerRegexResultArray = process.env.NPMCI_LOGIN_DOCKER.split('|') if (dockerRegexResultArray.length !== 3) { @@ -49,6 +49,8 @@ let docker = async () => { } else { await bash(`docker login -u ${username} -p ${password} ${registry}`) } + plugins.beautylog.success(`docker authenticated for ${registry}!`) + }) // Always login to GitLab Registry