From 826c4519204f00f18d675ce4fe58c92707848b36 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Thu, 20 Aug 2020 16:03:38 +0200 Subject: [PATCH] Log AWS region --- dist/index.js | 1 + src/main.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/dist/index.js b/dist/index.js index 7e033a1..9830c25 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1093,6 +1093,7 @@ function run() { const ecrRegion = yield ecr.getRegion(registry); process.env.AWS_ACCESS_KEY_ID = username; process.env.AWS_SECRET_ACCESS_KEY = password; + core.info(`Logging into AWS ECR region ${ecrRegion}...`); yield exec.exec('aws', ['ecr', 'get-login', '--region', ecrRegion, '--no-include-email'], true).then(res => { if (res.stderr != '' && !res.success) { throw new Error(res.stderr); diff --git a/src/main.ts b/src/main.ts index a64fdab..d466257 100644 --- a/src/main.ts +++ b/src/main.ts @@ -22,6 +22,8 @@ async function run(): Promise { const ecrRegion = await ecr.getRegion(registry); process.env.AWS_ACCESS_KEY_ID = username; process.env.AWS_SECRET_ACCESS_KEY = password; + + core.info(`Logging into AWS ECR region ${ecrRegion}...`); await exec.exec('aws', ['ecr', 'get-login', '--region', ecrRegion, '--no-include-email'], true).then(res => { if (res.stderr != '' && !res.success) { throw new Error(res.stderr);