3
0
Fork 0
mirror of https://gitea.com/docker/login-action.git synced 2024-11-26 11:29:36 +01:00

chore: update dist

Signed-off-by: Markus Maga <markus@maga.se>
This commit is contained in:
Markus Maga 2021-12-14 14:39:35 +01:00
parent 46ab6d5c3c
commit f6476db6e9
No known key found for this signature in database
GPG key ID: C4A60C14610ED918

8
dist/index.js generated vendored
View file

@ -262,8 +262,12 @@ function loginECR(registry, username, password) {
else { else {
core.info(`AWS ECR detected with ${region} region`); core.info(`AWS ECR detected with ${region} region`);
} }
process.env.AWS_ACCESS_KEY_ID = username || process.env.AWS_ACCESS_KEY_ID; if (username) {
process.env.AWS_SECRET_ACCESS_KEY = password || process.env.AWS_SECRET_ACCESS_KEY; 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})...`); core.info(`Retrieving docker login command through AWS CLI ${cliVersion} (${cliPath})...`);
const loginCmds = yield aws.getDockerLoginCmds(cliVersion, registry, region, accountIDs); const loginCmds = yield aws.getDockerLoginCmds(cliVersion, registry, region, accountIDs);
core.info(`Logging into ${registry}...`); core.info(`Logging into ${registry}...`);