From 49e872fc25ffb28b40ecdf3f8ad0d732e61ce72e Mon Sep 17 00:00:00 2001 From: Andrea Frittoli Date: Tue, 1 Oct 2024 13:29:16 +0100 Subject: [PATCH] Use step action v2 for catalog upload Signed-off-by: Andrea Frittoli --- tekton/resources/cd/catalog-template.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tekton/resources/cd/catalog-template.yaml b/tekton/resources/cd/catalog-template.yaml index 69b5f2b99..50eca9dec 100644 --- a/tekton/resources/cd/catalog-template.yaml +++ b/tekton/resources/cd/catalog-template.yaml @@ -121,7 +121,7 @@ spec: - name: revision value: main - name: pathInRepo - value: stepaction/tekton-catalog-publish/0.1/tekton-catalog-publish.yaml + value: stepaction/tekton-catalog-publish/0.2/tekton-catalog-publish.yaml params: - name: catalogPath value: $(workspaces.shared.path) @@ -135,6 +135,8 @@ spec: value: "$(params.registryPath)/tasks" - name: TAG value: "$(steps.fetch-repo.results.commit)" + - name: TKN_ARGS + value: "--label org.opencontainers.image.source=$(params.url)" - name: publish-steps ref: resolver: git @@ -144,7 +146,7 @@ spec: - name: revision value: main - name: pathInRepo - value: stepaction/tekton-catalog-publish/0.1/tekton-catalog-publish.yaml + value: stepaction/tekton-catalog-publish/0.2/tekton-catalog-publish.yaml params: - name: catalogPath value: $(workspaces.shared.path) @@ -158,6 +160,8 @@ spec: value: "$(params.registryPath)/stepactions" - name: TAG value: "$(steps.fetch-repo.results.commit)" + - name: TKN_ARGS + value: "--label org.opencontainers.image.source=github.com/tektoncd/catalog" --- apiVersion: triggers.tekton.dev/v1alpha1 kind: TriggerTemplate