mirror of
https://github.com/docker/login-action.git
synced 2024-11-06 00:45:48 -05:00
Unsilent
This commit is contained in:
parent
16b2f90c24
commit
b7cd11b1fa
2 changed files with 2 additions and 13 deletions
7
dist/index.js
generated
vendored
7
dist/index.js
generated
vendored
|
@ -1090,12 +1090,7 @@ function run() {
|
|||
const username = core.getInput('username');
|
||||
const password = core.getInput('password', { required: true });
|
||||
if (yield ecr.isECR(registry)) {
|
||||
yield exec.exec('aws', ['--version'], true).then(res => {
|
||||
if (res.stderr != '' && !res.success) {
|
||||
throw new Error(res.stderr);
|
||||
}
|
||||
core.info(`💡 Using ${res.stdout}`);
|
||||
});
|
||||
yield exec.exec('aws', ['--version'], false);
|
||||
const ecrRegion = yield ecr.getRegion(registry);
|
||||
process.env.AWS_ACCESS_KEY_ID = username;
|
||||
process.env.AWS_SECRET_ACCESS_KEY = password;
|
||||
|
|
|
@ -19,13 +19,7 @@ async function run(): Promise<void> {
|
|||
const password: string = core.getInput('password', {required: true});
|
||||
|
||||
if (await ecr.isECR(registry)) {
|
||||
await exec.exec('aws', ['--version'], true).then(res => {
|
||||
if (res.stderr != '' && !res.success) {
|
||||
throw new Error(res.stderr);
|
||||
}
|
||||
core.info(`💡 Using ${res.stdout}`);
|
||||
});
|
||||
|
||||
await exec.exec('aws', ['--version'], false);
|
||||
const ecrRegion = await ecr.getRegion(registry);
|
||||
process.env.AWS_ACCESS_KEY_ID = username;
|
||||
process.env.AWS_SECRET_ACCESS_KEY = password;
|
||||
|
|
Loading…
Reference in a new issue