Skip to content

Commit

Permalink
modifying pipelines for 2.16
Browse files Browse the repository at this point in the history
adding compute for some jobs

adding tags

adding on-cel-expression
  • Loading branch information
ckhordiasma committed Oct 23, 2024
1 parent 4efb1bd commit b0a1c6e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .tekton/ta-lmes-job-216-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
31 changes: 28 additions & 3 deletions .tekton/ta-lmes-job-216-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b0a1c6e

Please sign in to comment.