fix auths/auth key transposed by accident in docker auth json merge
This commit is contained in:
parent
d2c33c281e
commit
87eafd3972
10
dist/index.js
vendored
10
dist/index.js
vendored
@ -62148,10 +62148,10 @@ function mergeArgRegistryAuthJson(registryAuthJson) {
|
|||||||
if (argRegistryAuthJson != null && argRegistryAuthJson.trim().length > 0) {
|
if (argRegistryAuthJson != null && argRegistryAuthJson.trim().length > 0) {
|
||||||
try {
|
try {
|
||||||
const argRegistryAuth = JSON.parse(argRegistryAuthJson);
|
const argRegistryAuth = JSON.parse(argRegistryAuthJson);
|
||||||
if (argRegistryAuth.auth != null) {
|
if (argRegistryAuth.auths != null) {
|
||||||
for (const key in argRegistryAuth.auth) {
|
for (const key in argRegistryAuth.auths) {
|
||||||
if (argRegistryAuth.auth.hasOwnProperty(key)) {
|
if (argRegistryAuth.auths.hasOwnProperty(key)) {
|
||||||
registryAuthJson[key] = argRegistryAuth.auth[key];
|
registryAuthJson[key] = argRegistryAuth.auths[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -62404,7 +62404,7 @@ try {
|
|||||||
|
|
||||||
let ci_registry = false;
|
let ci_registry = false;
|
||||||
if (core.getBooleanInput('add_ci_registry_target')) {
|
if (core.getBooleanInput('add_ci_registry_target')) {
|
||||||
ci_registry = information.ci_hostname
|
ci_registry = information.ci_hostname;
|
||||||
const ci_registry_repo = ci_registry + '/' + repoStr + ':';
|
const ci_registry_repo = ci_registry + '/' + repoStr + ':';
|
||||||
targetRepos.push(ci_registry_repo);
|
targetRepos.push(ci_registry_repo);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user