From b7eb04a4ca18f057ebd50e6a47d294558bdd424a Mon Sep 17 00:00:00 2001 From: John Duimovich Date: Wed, 27 Mar 2024 18:15:45 -0400 Subject: [PATCH] add secret param to pipeline to allow gitlab/github - defaults remain the same so existing installer will work with github --- pipelines/docker-build-rhtap/patch.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pipelines/docker-build-rhtap/patch.yaml b/pipelines/docker-build-rhtap/patch.yaml index 362e7c7b5b..36e7df74fc 100644 --- a/pipelines/docker-build-rhtap/patch.yaml +++ b/pipelines/docker-build-rhtap/patch.yaml @@ -14,6 +14,13 @@ name: stackrox-secret type: string default: "rox-api-token" +- op: add + path: /spec/params/- + value: + name: gitops-auth-secret-name + type: string + default: gitops-auth-secret + description: "Secret name to enable this pipeline to update the gitops repo with the new image. " - op: add path: /spec/params/- value: @@ -141,6 +148,8 @@ value: $(params.git-url)-gitops - name: image value: $(tasks.build-container.results.IMAGE_URL)@$(tasks.build-container.results.IMAGE_DIGEST) + - name: gitops-auth-secret-name + value: $(params.gitops-auth-secret-name) runAfter: - build-container when: