update dist

This commit is contained in:
Daniel Beal 2020-12-30 10:53:16 -08:00
commit d61c413af8
4 changed files with 903 additions and 44 deletions

View file

@ -2,6 +2,7 @@ import * as core from '@actions/core';
export interface Inputs {
registry: string;
isECR: string;
username: string;
password: string;
logout: string;
@ -10,6 +11,7 @@ export interface Inputs {
export function getInputs(): Inputs {
return {
registry: core.getInput('registry'),
isECR: core.getInput('isECR'),
username: core.getInput('username'),
password: core.getInput('password'),
logout: core.getInput('logout')

View file

@ -2,8 +2,8 @@ import * as core from '@actions/core';
import * as aws from './aws';
import * as execm from './exec';
export async function login(registry: string, username: string, password: string, isECR?: boolean): Promise<void> {
if (isECR == true || (isECR == undefined && await aws.isECR(registry))) {
export async function login(registry: string, username: string, password: string, isECR: string): Promise<void> {
if (isECR == 'true' || (!isECR && await aws.isECR(registry))) {
await loginECR(registry, username, password);
} else {
await loginStandard(registry, username, password);