1
0
Fork 0
mirror of https://github.com/docker/login-action.git synced 2025-06-08 13:41:48 +02:00
This commit is contained in:
CrazyMax 2020-08-20 16:40:33 +02:00
parent 26618cd0df
commit 2c57607524
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
4 changed files with 251 additions and 105 deletions

17
src/context.ts Normal file
View file

@ -0,0 +1,17 @@
import * as core from '@actions/core';
export interface Inputs {
registry: string;
username: string;
password: string;
logout: string;
}
export async function getInputs(): Promise<Inputs> {
return {
registry: core.getInput('registry'),
username: core.getInput('username'),
password: core.getInput('password', {required: true}),
logout: core.getInput('logout')
};
}