From e48bdcef19d711ca136bcca16e13b349ce43d5a6 Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Tue, 15 Oct 2024 07:45:09 -0400 Subject: [PATCH] Provide an example of combining the two approaches --- .../how-tos/configuring/dynamic-labels.adoc | 26 +++++++++++++++---- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/docs/modules/ROOT/pages/how-tos/configuring/dynamic-labels.adoc b/docs/modules/ROOT/pages/how-tos/configuring/dynamic-labels.adoc index 6012f59b..9552ed16 100644 --- a/docs/modules/ROOT/pages/how-tos/configuring/dynamic-labels.adoc +++ b/docs/modules/ROOT/pages/how-tos/configuring/dynamic-labels.adoc @@ -5,11 +5,7 @@ Konflux allows applying some dynamic labels to images derived from properties an . <> . <> . <> - -[NOTE] -==== -These can be combined and used together. -==== +. <> [[supplying-labels-to-the-build-container-task]] == Supplying labels to the build-container task with the LABELS param @@ -132,3 +128,23 @@ tasks: - $(tasks.generate-labels.results.labels[*]) ... ---- + +[[combining-approaches]] +== Combining approaches + +You can combine the approaches described above and supply a list of labels to the build-container task constructed from multiple sources. + +[source,yaml] +---- +tasks: +... + - name: build-container + ... + params: + ... + - name: LABELS + value: + - $(tasks.generate-labels.results.labels[*]) + - "short-commit=$(tasks.clone-repository.results.short-commit)" +... +----