Skip to content

Commit d78ba1d

Browse files
sync pipelineruns with konflux-central - 7b923ab
1 parent e77ae9f commit d78ba1d

File tree

3 files changed

+138
-5
lines changed

3 files changed

+138
-5
lines changed

.tekton/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ All Tekton file updates **must be made in the `konflux-central` repository**.
66

77
## ✅ How to Make Changes
88

9-
To modify the pipelines for `guardrails-detectors` in the `main` branch:
9+
To modify the pipelines for `guardrails-detectors` in the `rhoai-3.3` release:
1010

1111
- Clone the [`konflux-central`](https://github.com/red-hat-data-services/konflux-central) repository.
1212

@@ -15,10 +15,10 @@ git clone git@github.com:red-hat-data-services/konflux-central.git
1515
cd konflux-central
1616
```
1717

18-
- Check out the branch
18+
- Check out the release branch
1919

2020
```bash
21-
git checkout main
21+
git checkout rhoai-3.3
2222
```
2323

2424
- Navigate to the Tekton files for your component(s).
@@ -32,8 +32,8 @@ cd pipelineruns/guardrails-detectors/.tekton
3232
- Commit and push your changes.
3333

3434
```bash
35-
git commit -am "Update pipelinerun for guardrails-detectors (main)"
36-
git push origin main
35+
git commit -am "Update pipelinerun for guardrails-detectors (rhoai-3.3)"
36+
git push origin rhoai-3.3
3737
```
3838

3939
- Once pushed, automation will automatically sync your updates to the corresponding component repository.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
# retrigger Konflux builds to fix https://issues.redhat.com/browse/RHOAIENG-31914
4+
metadata:
5+
annotations:
6+
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/guardrails-detectors?rev={{revision}}
7+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
8+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
9+
pipelinesascode.tekton.dev/max-keep-runs: "3"
10+
build.appstudio.openshift.io/build-nudge-files: "build/operator-nudging.yaml"
11+
pipelinesascode.tekton.dev/on-cel-expression: |
12+
event == "push"
13+
&& target_branch == "rhoai-3.3"
14+
&& ( "detectors/**".pathChanged() || ".tekton/odh-built-in-detector-v3-3-push.yaml".pathChanged() )
15+
creationTimestamp:
16+
labels:
17+
appstudio.openshift.io/application: rhoai-v3-3
18+
appstudio.openshift.io/component: odh-built-in-detector-v3-3
19+
pipelines.appstudio.openshift.io/type: build
20+
name: odh-built-in-detector-v3-3-on-push
21+
namespace: rhoai-tenant
22+
spec:
23+
params:
24+
- name: git-url
25+
value: '{{source_url}}'
26+
- name: revision
27+
value: '{{revision}}'
28+
- name: additional-tags
29+
value:
30+
- '{{target_branch}}-{{revision}}'
31+
- name: additional-labels
32+
value:
33+
- version=v3.3.0
34+
- io.openshift.tags=odh-built-in-detector
35+
- name: output-image
36+
value: quay.io/rhoai/odh-built-in-detector-rhel9:{{target_branch}}
37+
- name: dockerfile
38+
value: Dockerfile.konflux.builtIn
39+
- name: path-context
40+
value: detectors
41+
- name: hermetic
42+
value: false
43+
- name: build-image-index
44+
value: true
45+
- name: build-platforms
46+
value:
47+
- linux/x86_64
48+
- linux-m2xlarge/arm64
49+
- linux/ppc64le
50+
- linux/s390x
51+
pipelineRef:
52+
resolver: git
53+
params:
54+
- name: url
55+
value: https://github.com/red-hat-data-services/konflux-central.git
56+
- name: revision
57+
value: '{{ target_branch }}'
58+
- name: pathInRepo
59+
value: pipelines/multi-arch-container-build.yaml
60+
taskRunTemplate:
61+
serviceAccountName: build-pipeline-odh-built-in-detector-v3-3
62+
workspaces:
63+
- name: git-auth
64+
secret:
65+
secretName: '{{ git_auth_secret }}'
66+
status: {}
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
apiVersion: tekton.dev/v1
2+
kind: PipelineRun
3+
metadata:
4+
annotations:
5+
build.appstudio.openshift.io/repo: https://github.com/red-hat-data-services/guardrails-detectors?rev={{revision}}
6+
build.appstudio.redhat.com/commit_sha: '{{revision}}'
7+
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/cancel-in-progress: "false"
9+
pipelinesascode.tekton.dev/max-keep-runs: "3"
10+
build.appstudio.openshift.io/build-nudge-files: "build/operator-nudging.yaml"
11+
pipelinesascode.tekton.dev/on-cel-expression: |
12+
event == "push"
13+
&& target_branch == "rhoai-3.3"
14+
&& ( !".tekton/**".pathChanged() || ".tekton/odh-guardrails-detector-huggingface-runtime-v3-3-push.yaml".pathChanged() )
15+
labels:
16+
appstudio.openshift.io/application: rhoai-v3-3
17+
appstudio.openshift.io/component: odh-guardrails-detector-huggingface-runtime-v3-3
18+
pipelines.appstudio.openshift.io/type: build
19+
name: odh-guardrails-detector-huggingface-runtime-v3-3-on-push
20+
namespace: rhoai-tenant
21+
spec:
22+
params:
23+
- name: git-url
24+
value: '{{source_url}}'
25+
- name: revision
26+
value: '{{revision}}'
27+
- name: output-image
28+
value: quay.io/rhoai/odh-guardrails-detector-huggingface-runtime-rhel9:{{target_branch}}
29+
- name: additional-tags
30+
value:
31+
- '{{target_branch}}-{{revision}}'
32+
- name: additional-labels
33+
value:
34+
- version=v3.3.0
35+
- io.openshift.tags=odh-guardrails-detector-huggingface-runtime
36+
- name: dockerfile
37+
value: Dockerfile.konflux.hf
38+
- name: path-context
39+
value: detectors
40+
- name: hermetic
41+
value: false
42+
- name: build-source-image
43+
value: true
44+
- name: build-image-index
45+
value: true
46+
- name: build-platforms
47+
value:
48+
- linux/x86_64
49+
- linux/ppc64le
50+
- linux-m2xlarge/arm64
51+
- linux/s390x
52+
pipelineRef:
53+
resolver: git
54+
params:
55+
- name: url
56+
value: https://github.com/red-hat-data-services/konflux-central.git
57+
- name: revision
58+
value: '{{ target_branch }}'
59+
- name: pathInRepo
60+
value: pipelines/multi-arch-container-build.yaml
61+
taskRunTemplate:
62+
serviceAccountName: build-pipeline-odh-guardrails-detector-huggingface-runtime-v3-3
63+
workspaces:
64+
- name: git-auth
65+
secret:
66+
secretName: '{{ git_auth_secret }}'
67+
status: {}

0 commit comments

Comments
 (0)