2
0
Fork 0
mirror of https://code.forgejo.org/docker/metadata-action.git synced 2025-09-16 09:46:56 +00:00

Allow global prefix/suffix on latest

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2021-07-05 20:37:02 +02:00
parent aa7478bca1
commit 375e313280
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
7 changed files with 245 additions and 59 deletions

View file

@ -100,7 +100,7 @@ export function Parse(s: string): Tag {
switch (key) {
case 'type': {
if (!Object.values(Type).includes(value)) {
throw new Error(`Unknown type attribute: ${value}`);
throw new Error(`Unknown tag type attribute: ${value}`);
}
tag.type = value;
break;