cleanup debug output
This commit is contained in:
parent
5399a159dd
commit
7b19d1b0f6
9
dist/index.js
vendored
9
dist/index.js
vendored
@ -62169,12 +62169,11 @@ function mergeArgRegistryAuthJson(registryAuthJson) {
|
|||||||
|
|
||||||
function mergeExistingDockerAuthJson(registryAuthJson, targetFile) {
|
function mergeExistingDockerAuthJson(registryAuthJson, targetFile) {
|
||||||
if (!core.getBooleanInput('merge_existing_auth_json')) {
|
if (!core.getBooleanInput('merge_existing_auth_json')) {
|
||||||
console.log('merge_existing_auth_json is disabled');
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!external_fs_.existsSync(targetFile)) {
|
if (!external_fs_.existsSync(targetFile)) {
|
||||||
console.log(`${targetFile} does not exist`);
|
console.log(`no pre-existing config found, skipping merge: ${targetFile}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -62184,16 +62183,12 @@ function mergeExistingDockerAuthJson(registryAuthJson, targetFile) {
|
|||||||
|
|
||||||
if (existingJson.auths != null && typeof existingJson.auths === 'object') {
|
if (existingJson.auths != null && typeof existingJson.auths === 'object') {
|
||||||
for (const key in existingJson.auths) {
|
for (const key in existingJson.auths) {
|
||||||
console.log(`existingJson.auths.${key}`);
|
|
||||||
if (existingJson.auths.hasOwnProperty(key)) {
|
if (existingJson.auths.hasOwnProperty(key)) {
|
||||||
console.log(`existingJson.auths.${key} has own property, assigning value`);
|
console.log(`merging existingJson.auths[${key}]`);
|
||||||
registryAuthJson.auths[key] = existingJson.auths[key];
|
registryAuthJson.auths[key] = existingJson.auths[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
console.log('existingJson.auths is ' + typeof existingJson.auths);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
console.log(`Failed to parse existing docker auth json in file: ${targetFile}"`);
|
console.log(`Failed to parse existing docker auth json in file: ${targetFile}"`);
|
||||||
|
|||||||
@ -62,12 +62,11 @@ export function mergeArgRegistryAuthJson(registryAuthJson) {
|
|||||||
|
|
||||||
export function mergeExistingDockerAuthJson(registryAuthJson, targetFile) {
|
export function mergeExistingDockerAuthJson(registryAuthJson, targetFile) {
|
||||||
if (!core.getBooleanInput('merge_existing_auth_json')) {
|
if (!core.getBooleanInput('merge_existing_auth_json')) {
|
||||||
console.log('merge_existing_auth_json is disabled');
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!fs.existsSync(targetFile)) {
|
if (!fs.existsSync(targetFile)) {
|
||||||
console.log(`${targetFile} does not exist`);
|
console.log(`no pre-existing config found, skipping merge: ${targetFile}`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,16 +76,12 @@ export function mergeExistingDockerAuthJson(registryAuthJson, targetFile) {
|
|||||||
|
|
||||||
if (existingJson.auths != null && typeof existingJson.auths === 'object') {
|
if (existingJson.auths != null && typeof existingJson.auths === 'object') {
|
||||||
for (const key in existingJson.auths) {
|
for (const key in existingJson.auths) {
|
||||||
console.log(`existingJson.auths.${key}`);
|
|
||||||
if (existingJson.auths.hasOwnProperty(key)) {
|
if (existingJson.auths.hasOwnProperty(key)) {
|
||||||
console.log(`existingJson.auths.${key} has own property, assigning value`);
|
console.log(`merging existingJson.auths[${key}]`);
|
||||||
registryAuthJson.auths[key] = existingJson.auths[key];
|
registryAuthJson.auths[key] = existingJson.auths[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
console.log('existingJson.auths is ' + typeof existingJson.auths);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (e) {
|
catch (e) {
|
||||||
console.log(`Failed to parse existing docker auth json in file: ${targetFile}"`);
|
console.log(`Failed to parse existing docker auth json in file: ${targetFile}"`);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user