diff --git a/src/docker.ts b/src/docker.ts index 079093b..90268f5 100644 --- a/src/docker.ts +++ b/src/docker.ts @@ -3,7 +3,7 @@ import * as aws from './aws'; import * as execm from './exec'; export async function login(registry: string, username: string, password: string, isECR?: boolean): Promise { - if (await aws.isECR(registry)) { + if (isECR == true || (isECR == undefined && await aws.isECR(registry))) { await loginECR(registry, username, password); } else { await loginStandard(registry, username, password);