Include registry type in proxy_urls output

This commit is contained in:
Michael B. Gale 2025-01-06 11:02:05 +00:00
parent 5b6e617dc0
commit 97aec69211
No known key found for this signature in database
GPG key ID: FF5E2765BD00628F
3 changed files with 9 additions and 3 deletions

View file

@ -154,7 +154,10 @@ async function startProxy(binPath, config, logFilePath, logger) {
core.setOutput("proxy_ca_certificate", config.ca.cert);
const registry_urls = config.all_credentials
.filter((credential) => credential.url !== undefined)
.map((credential) => credential.url);
.map((credential) => ({
type: credential.type,
url: credential.url,
}));
core.setOutput("proxy_urls", JSON.stringify(registry_urls));
}
catch (error) {

File diff suppressed because one or more lines are too long

View file

@ -174,7 +174,10 @@ async function startProxy(
const registry_urls = config.all_credentials
.filter((credential) => credential.url !== undefined)
.map((credential) => credential.url);
.map((credential) => ({
type: credential.type,
url: credential.url,
}));
core.setOutput("proxy_urls", JSON.stringify(registry_urls));
} catch (error) {
core.setFailed(`start-proxy action failed: ${util.getErrorMessage(error)}`);