From e935e860ec360b818656241d0e5934114b5c2cf0 Mon Sep 17 00:00:00 2001 From: Marcin Owsiany Date: Mon, 1 Dec 2025 12:58:26 +0100 Subject: [PATCH 1/5] docs: explain how `onlatest` works Just a bit more verbosity that would have made it clear for me. Signed-off-by: Marcin Owsiany --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cd51c70..cfea6ff 100644 --- a/README.md +++ b/README.md @@ -403,9 +403,9 @@ flavor: | * `latest=`: Handle [latest tag](#latest-tag) (default `auto`) * `prefix=,onlatest=`: A global prefix for each generated - tag and optionally for `latest` + tag. If `onlatest` (default `false) is set to `true`, also for the [latest tag](#latest-tag). * `suffix=,onlatest=`: A global suffix for each generated - tag and optionally for `latest` + tag If `onlatest` (default `false) is set to `true`, also for the [latest tag](#latest-tag). ## `tags` input From 2da3a5aaf814020b832b1cfe52134caad2eb3f72 Mon Sep 17 00:00:00 2001 From: Marcin Owsiany Date: Mon, 1 Dec 2025 12:59:55 +0100 Subject: [PATCH 2/5] docs: typo Signed-off-by: Marcin Owsiany --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cfea6ff..f723e17 100644 --- a/README.md +++ b/README.md @@ -405,7 +405,7 @@ flavor: | * `prefix=,onlatest=`: A global prefix for each generated tag. If `onlatest` (default `false) is set to `true`, also for the [latest tag](#latest-tag). * `suffix=,onlatest=`: A global suffix for each generated - tag If `onlatest` (default `false) is set to `true`, also for the [latest tag](#latest-tag). + tag. If `onlatest` (default `false) is set to `true`, also for the [latest tag](#latest-tag). ## `tags` input From 8f68d6b0aaa84fe72549a6e5dcc260ac89147143 Mon Sep 17 00:00:00 2001 From: Marcin Owsiany Date: Mon, 8 Dec 2025 08:36:28 +0100 Subject: [PATCH 3/5] Apply suggestions from code review Co-authored-by: Brennan Kinney <5098581+polarathene@users.noreply.github.com> Signed-off-by: Marcin Owsiany --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f723e17..7725379 100644 --- a/README.md +++ b/README.md @@ -403,9 +403,11 @@ flavor: | * `latest=`: Handle [latest tag](#latest-tag) (default `auto`) * `prefix=,onlatest=`: A global prefix for each generated - tag. If `onlatest` (default `false) is set to `true`, also for the [latest tag](#latest-tag). + tag. * `suffix=,onlatest=`: A global suffix for each generated - tag. If `onlatest` (default `false) is set to `true`, also for the [latest tag](#latest-tag). + tag. + +The `prefix` and `suffix` flavor settings can set `onlatest=true` (default: `false`) to additionally apply the affix to the [`latest` tag](#latest-tag) (_when it is added via the `flavor.latest` condition_). ## `tags` input From 8b535fa223fcc704b5b35e0c696500a57ce44385 Mon Sep 17 00:00:00 2001 From: Marcin Owsiany Date: Mon, 8 Dec 2025 08:41:24 +0100 Subject: [PATCH 4/5] Put default first. Signed-off-by: Marcin Owsiany --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7725379..89d7aa4 100644 --- a/README.md +++ b/README.md @@ -402,9 +402,9 @@ flavor: | ``` * `latest=`: Handle [latest tag](#latest-tag) (default `auto`) -* `prefix=,onlatest=`: A global prefix for each generated +* `prefix=,onlatest=`: A global prefix for each generated tag. -* `suffix=,onlatest=`: A global suffix for each generated +* `suffix=,onlatest=`: A global suffix for each generated tag. The `prefix` and `suffix` flavor settings can set `onlatest=true` (default: `false`) to additionally apply the affix to the [`latest` tag](#latest-tag) (_when it is added via the `flavor.latest` condition_). From a2f14c6328237f92d8e1c14ee14c5847dbf7ed23 Mon Sep 17 00:00:00 2001 From: Marcin Owsiany Date: Mon, 8 Dec 2025 08:41:45 +0100 Subject: [PATCH 5/5] Add a link. Signed-off-by: Marcin Owsiany --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 89d7aa4..5a117fd 100644 --- a/README.md +++ b/README.md @@ -407,7 +407,7 @@ flavor: | * `suffix=,onlatest=`: A global suffix for each generated tag. -The `prefix` and `suffix` flavor settings can set `onlatest=true` (default: `false`) to additionally apply the affix to the [`latest` tag](#latest-tag) (_when it is added via the `flavor.latest` condition_). +The `prefix` and `suffix` flavor settings can set `onlatest=true` (default: `false`) to additionally apply the affix to the [`latest` tag](#latest-tag) (_when it is added via the `flavor.latest` condition_). See also [this comment](https://github.com/docker/metadata-action/issues/567#issuecomment-3579068205) for more info. ## `tags` input