mirror of
https://githubfast.com/docker/login-action.git
synced 2024-03-15 03:39:46 +00:00
Update docker.ts
This commit is contained in:
parent
1e9c9b416b
commit
28ede9d50a
@ -3,7 +3,7 @@ import * as aws from './aws';
|
|||||||
import * as execm from './exec';
|
import * as execm from './exec';
|
||||||
|
|
||||||
export async function login(registry: string, username: string, password: string, isECR?: boolean): Promise<void> {
|
export async function login(registry: string, username: string, password: string, isECR?: boolean): Promise<void> {
|
||||||
if (await aws.isECR(registry)) {
|
if (isECR == true || (isECR == undefined && await aws.isECR(registry))) {
|
||||||
await loginECR(registry, username, password);
|
await loginECR(registry, username, password);
|
||||||
} else {
|
} else {
|
||||||
await loginStandard(registry, username, password);
|
await loginStandard(registry, username, password);
|
||||||
|
Loading…
Reference in New Issue
Block a user