diff --git a/.tekton/odh-codeflare-operator-v2-16-push.yaml b/.tekton/odh-codeflare-operator-v2-16-push.yaml index 8f6e4e6b..604d2147 100644 --- a/.tekton/odh-codeflare-operator-v2-16-push.yaml +++ b/.tekton/odh-codeflare-operator-v2-16-push.yaml @@ -2,16 +2,16 @@ apiVersion: tekton.dev/v1 kind: PipelineRun metadata: annotations: + build.appstudio.openshift.io/build-nudge-files: build/operator-nudging.yaml build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/codeflare-operator?rev={{revision}} build.appstudio.redhat.com/commit_sha: '{{revision}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - build.appstudio.openshift.io/build-nudge-files: "build/operator-nudging.yaml" pipelinesascode.tekton.dev/on-cel-expression: | event == "push" && target_branch == "rhoai-2.16" && ( !".tekton/**".pathChanged() || ".tekton/odh-codeflare-operator-v2-16-push.yaml".pathChanged() ) - creationTimestamp: + creationTimestamp: null labels: appstudio.openshift.io/application: rhoai-v2-16 appstudio.openshift.io/component: odh-codeflare-operator-v2-16 @@ -56,7 +56,7 @@ spec: - name: send-slack-notification params: - name: message - value: "$(tasks.rhoai-init.results.slack-message-failure-text)" + value: $(tasks.rhoai-init.results.slack-message-failure-text) - name: secret-name value: rhoai-konflux-secret - name: key-name @@ -74,7 +74,7 @@ spec: - input: $(tasks.status) operator: in values: - - "Failed" + - Failed params: - description: Source Repository URL name: git-url @@ -87,11 +87,13 @@ spec: name: output-image type: string - default: . - description: Path to the source code of an application's component from where to build image. + description: Path to the source code of an application's component from where + to build image. name: path-context type: string - default: Dockerfile - description: Path to the Dockerfile inside the context specified by parameter path-context + description: Path to the Dockerfile inside the context specified by parameter + path-context name: dockerfile type: string - default: "false" @@ -111,7 +113,8 @@ spec: name: prefetch-input type: string - default: "" - description: Image tag expiration time, time values could be something like 1h, 2d, 3w for hours, days, and weeks, respectively. + description: Image tag expiration time, time values could be something like + 1h, 2d, 3w for hours, days, and weeks, respectively. name: image-expires-after - default: "true" description: Build a source image. @@ -146,20 +149,23 @@ spec: - name: rhoai-init params: - name: pipelinerun-name - value: "$(context.pipelineRun.name)" + value: $(context.pipelineRun.name) taskSpec: + metadata: {} results: - description: Notification text to be posted to slack name: slack-message-failure-text + spec: null steps: - - image: quay.io/rhoai-konflux/alpine:latest - name: rhoai-init + - computeResources: {} env: - name: slack_message valueFrom: secretKeyRef: - name: rhoai-konflux-secret key: slack-component-failure-notification + name: rhoai-konflux-secret + image: quay.io/rhoai-konflux/alpine:latest + name: rhoai-init script: | pipelinerun_name=$(params.pipelinerun-name) target_branch={{target_branch}} @@ -190,6 +196,8 @@ spec: value: $(params.rebuild) - name: skip-checks value: $(params.skip-checks) + runAfter: + - rhoai-init taskRef: params: - name: name @@ -199,8 +207,6 @@ spec: - name: kind value: task resolver: bundles - runAfter: - - rhoai-init - name: clone-repository params: - name: url @@ -544,7 +550,8 @@ spec: optional: true - name: netrc optional: true - taskRunTemplate: {} + taskRunTemplate: + serviceAccountName: build-pipeline-odh-codeflare-operator-v2-16 workspaces: - name: git-auth secret: