mirror of
https://github.com/docker/login-action.git
synced 2025-04-01 20:50:06 +02:00
Update main.ts
This commit is contained in:
parent
28ede9d50a
commit
34677259a9
1 changed files with 2 additions and 2 deletions
|
@ -10,10 +10,10 @@ export async function run(): Promise<void> {
|
||||||
throw new Error('Only supported on linux platform');
|
throw new Error('Only supported on linux platform');
|
||||||
}
|
}
|
||||||
|
|
||||||
const {registry, username, password, logout} = getInputs();
|
const {registry, isECR, username, password, logout} = getInputs();
|
||||||
stateHelper.setRegistry(registry);
|
stateHelper.setRegistry(registry);
|
||||||
stateHelper.setLogout(logout);
|
stateHelper.setLogout(logout);
|
||||||
await docker.login(registry, username, password);
|
await docker.login(registry, username, password, isECR);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue