From f6476db6e93cd944a4dd6b91df795144a417221b Mon Sep 17 00:00:00 2001 From: Markus Maga Date: Tue, 14 Dec 2021 14:39:35 +0100 Subject: [PATCH] chore: update dist Signed-off-by: Markus Maga --- dist/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 80ea456..6e8d198 100644 --- a/dist/index.js +++ b/dist/index.js @@ -262,8 +262,12 @@ function loginECR(registry, username, password) { else { core.info(`AWS ECR detected with ${region} region`); } - process.env.AWS_ACCESS_KEY_ID = username || process.env.AWS_ACCESS_KEY_ID; - process.env.AWS_SECRET_ACCESS_KEY = password || process.env.AWS_SECRET_ACCESS_KEY; + if (username) { + process.env.AWS_ACCESS_KEY_ID = username; + } + if (password) { + process.env.AWS_SECRET_ACCESS_KEY = password; + } core.info(`Retrieving docker login command through AWS CLI ${cliVersion} (${cliPath})...`); const loginCmds = yield aws.getDockerLoginCmds(cliVersion, registry, region, accountIDs); core.info(`Logging into ${registry}...`);