From aab2ba8e0b971bc39833788824b62d2e526b2dda Mon Sep 17 00:00:00 2001 From: Alberto Bellotti Date: Wed, 6 Nov 2024 11:38:42 -0500 Subject: [PATCH] Defining and using target_release as additional tag. (i.e. x.y.z) --- .tekton/rhproxy-engine-container-release-push.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.tekton/rhproxy-engine-container-release-push.yaml b/.tekton/rhproxy-engine-container-release-push.yaml index a1b5393..ee46f40 100644 --- a/.tekton/rhproxy-engine-container-release-push.yaml +++ b/.tekton/rhproxy-engine-container-release-push.yaml @@ -22,6 +22,8 @@ spec: value: '{{revision}}' - name: output-image value: quay.io/redhat-user-workloads/insights-proxy-ipp-tenant/rhproxy-engine-container:{{revision}} + - name: target_release + value: '$(target_branch.split("/").last())' - name: image-expires-after value: 5d - name: dockerfile @@ -418,7 +420,7 @@ spec: - name: IMAGE value: $(tasks.build-image-index.results.IMAGE_URL) - name: ADDITIONAL_TAGS - value: ["{{target_branch}}"] + value: ["$(params.target_release)"] runAfter: - build-image-index taskRef: