diff --git a/.tekton/ta-lmes-job-216-pull-request.yaml b/.tekton/ta-lmes-job-216-pull-request.yaml index b1f406418d..2b683a2e5c 100644 --- a/.tekton/ta-lmes-job-216-pull-request.yaml +++ b/.tekton/ta-lmes-job-216-pull-request.yaml @@ -8,7 +8,7 @@ metadata: build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch - == "rhoai-2.16" + == "null" creationTimestamp: null labels: appstudio.openshift.io/application: ta-lmes-job diff --git a/.tekton/ta-lmes-job-216-push.yaml b/.tekton/ta-lmes-job-216-push.yaml index 288b16b3c2..d8a0b25f87 100644 --- a/.tekton/ta-lmes-job-216-push.yaml +++ b/.tekton/ta-lmes-job-216-push.yaml @@ -6,8 +6,13 @@ metadata: build.appstudio.redhat.com/commit_sha: '{{revision}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch - == "rhoai-2.16" + # build.appstudio.openshift.io/build-nudge-files: "config/base/params.env" + pipelinesascode.tekton.dev/on-cel-expression: | + event == "push" + && target_branch == "rhoai-2.16" + && ( !".tekton/**".pathChanged() || ".tekton/ta-lmes-job-216-push.yaml".pathChanged() ) + # && !"config/base/params.env".pathChanged() + # comment to force new build creationTimestamp: null labels: appstudio.openshift.io/application: ta-lmes-job @@ -22,9 +27,26 @@ spec: - name: revision value: '{{revision}}' - name: output-image - value: quay.io/redhat-user-workloads/rhoai-tenant/ta-lmes-job-216:{{revision}} + value: quay.io/modh/ta-lmes-job:{{target_branch}} - name: dockerfile value: Dockerfile.lmes-job + taskRunSpecs: + - pipelineTaskName: ecosystem-cert-preflight-checks + computeResources: + requests: + cpu: '2' + memory: 10Gi + limits: + cpu: '4' + memory: 20Gi + - pipelineTaskName: clair-scan + computeResources: + requests: + cpu: '2' + memory: 10Gi + limits: + cpu: '4' + memory: 20Gi pipelineSpec: description: | This pipeline is ideal for building container images from a Containerfile while maintaining trust after pipeline customization. @@ -402,6 +424,9 @@ spec: params: - name: IMAGE value: $(tasks.build-image-index.results.IMAGE_URL) + - name: ADDITIONAL_TAGS + value: + - '{{target_branch}}-ta-lmes-job-{{revision}}' runAfter: - build-image-index taskRef: