From 639070f5d756b5c8e893096e2264d412b518bd63 Mon Sep 17 00:00:00 2001 From: yashodgayashan Date: Tue, 2 Jul 2024 16:21:20 +0530 Subject: [PATCH] accept docker login for choreo-docker-hub --- dist/index.js | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 753bd36..486ae89 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3416,7 +3416,7 @@ async function login() { ); let data = JSON.parse(fileContents); for (const cred of data) { - if (cred?.is_cdp === undefined || cred?.is_cdp) { + if ((cred?.is_cdp === undefined || cred?.is_cdp) && cred.registry_id != "choreo-docker-hub") { continue; } if (cred.type == "ACR") { diff --git a/index.js b/index.js index 6282921..a96a904 100644 --- a/index.js +++ b/index.js @@ -57,7 +57,7 @@ async function login() { ); let data = JSON.parse(fileContents); for (const cred of data) { - if (cred?.is_cdp === undefined || cred?.is_cdp) { + if ((cred?.is_cdp === undefined || cred?.is_cdp) && cred.registry_id != "choreo-docker-hub") { continue; } if (cred.type == "ACR") {