Add registry URLs as output to the start-proxy Action

This commit is contained in:
Michael B. Gale
2024-12-13 16:33:32 +00:00
parent dd75594246
commit 62192f8dab
4 changed files with 12 additions and 1 deletions

View File

@@ -152,6 +152,10 @@ async function startProxy(binPath, config, logFilePath, logger) {
core.setOutput("proxy_host", host);
core.setOutput("proxy_port", port.toString());
core.setOutput("proxy_ca_certificate", config.ca.cert);
const registry_urls = config.all_credentials
.filter((credential) => credential.url !== undefined)
.map((credential) => credential.url);
core.setOutput("proxy_urls", JSON.stringify(registry_urls));
}
catch (error) {
core.setFailed(`start-proxy action failed: ${util.getErrorMessage(error)}`);