compile
This commit is contained in:
parent
24dd9edcae
commit
0701429782
7
dist/mod_prepare/index.js
vendored
7
dist/mod_prepare/index.js
vendored
@ -36,7 +36,7 @@ let docker = () => __awaiter(this, void 0, void 0, function* () {
|
||||
env.setDockerRegistry('docker.io'); // TODO: checkup why we set this here
|
||||
// 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('|');
|
||||
let dockerRegexResultArray = envString.split('|');
|
||||
if (dockerRegexResultArray.length !== 3) {
|
||||
plugins.beautylog.error('malformed docker env var...');
|
||||
process.exit(1);
|
||||
@ -46,7 +46,8 @@ let docker = () => __awaiter(this, void 0, void 0, function* () {
|
||||
let username = dockerRegexResultArray[1];
|
||||
let password = dockerRegexResultArray[2];
|
||||
if (registry === 'docker.io') {
|
||||
yield npmci_bash_1.bash('docker login -u ' + username + ' -p ' + password);
|
||||
yield npmci_bash_1.bash(`docker login -u ${username} -p ${password}`);
|
||||
plugins.beautylog.info('Logged in to standard docker hub');
|
||||
}
|
||||
else {
|
||||
yield npmci_bash_1.bash(`docker login -u ${username} -p ${password} ${registry}`);
|
||||
@ -91,4 +92,4 @@ exports.prepare = (serviceArg) => __awaiter(this, void 0, void 0, function* () {
|
||||
break;
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9tb2RfcHJlcGFyZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEseUNBQXdDO0FBQ3hDLDhDQUFvQztBQUNwQyxvQ0FBbUM7QUFDbkMsMkNBQTBDO0FBUzFDOztHQUVHO0FBQ0gsSUFBSSxHQUFHLEdBQUc7SUFDUixJQUFJ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