mirror of
https://github.com/docker/login-action.git
synced 2025-03-31 12:10:05 +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');
|
||||
}
|
||||
|
||||
const {registry, username, password, logout} = getInputs();
|
||||
const {registry, isECR, username, password, logout} = getInputs();
|
||||
stateHelper.setRegistry(registry);
|
||||
stateHelper.setLogout(logout);
|
||||
await docker.login(registry, username, password);
|
||||
await docker.login(registry, username, password, isECR);
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue