Skip to content

Commit 9bf608e

Browse files
red-hat-konflux[bot]red-hat-konfluxruromero
committed
Red Hat Konflux update exhort (#399)
* Red Hat Konflux update exhort Signed-off-by: red-hat-konflux <[email protected]> * build: restore previous build definition Signed-off-by: Ruben Romero Montes <[email protected]> * build: bump openjdk image Signed-off-by: Ruben Romero Montes <[email protected]> --------- Signed-off-by: Ruben Romero Montes <[email protected]> Co-authored-by: red-hat-konflux <[email protected]> Co-authored-by: Ruben Romero Montes <[email protected]>
1 parent 63c3a93 commit 9bf608e

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.tekton/exhort-pull-request.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ metadata:
66
build.appstudio.redhat.com/commit_sha: '{{revision}}'
77
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
88
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
9+
pipelinesascode.tekton.dev/cancel-in-progress: "true"
910
pipelinesascode.tekton.dev/max-keep-runs: "3"
1011
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main" && ( ".tekton/exhort-pull-request.yaml".pathChanged() || "ui/*".pathChanged() || "src/*".pathChanged() || "api-spec/*".pathChanged() || "pom.xml".pathChanged() ) && !( event_title.contains("[skip ci]") || event_title.contains("[ci skip]") )
1112
creationTimestamp: null
@@ -22,7 +23,7 @@ spec:
2223
- name: revision
2324
value: '{{revision}}'
2425
- name: output-image
25-
value: quay.io/redhat-user-workloads/trusted-content-tenant/exhort/exhort:on-pr-{{revision}}
26+
value: quay.io/redhat-user-workloads/trusted-content-tenant/exhort:on-pr-{{revision}}
2627
- name: image-expires-after
2728
value: 5d
2829
- name: dockerfile

.tekton/exhort-push.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ metadata:
55
build.appstudio.openshift.io/repo: https://github.com/trustification/exhort?rev={{revision}}
66
build.appstudio.redhat.com/commit_sha: '{{revision}}'
77
build.appstudio.redhat.com/target_branch: '{{target_branch}}'
8+
pipelinesascode.tekton.dev/cancel-in-progress: "true"
89
pipelinesascode.tekton.dev/max-keep-runs: "3"
9-
pipelinesascode.tekton.dev/on-event: '[push]'
10-
pipelinesascode.tekton.dev/on-target-branch: '[main]'
10+
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch
11+
== "main"
1112
creationTimestamp: null
1213
labels:
1314
appstudio.openshift.io/application: exhort
@@ -22,7 +23,7 @@ spec:
2223
- name: revision
2324
value: '{{revision}}'
2425
- name: output-image
25-
value: quay.io/redhat-user-workloads/trusted-content-tenant/exhort/exhort:{{revision}}
26+
value: quay.io/redhat-user-workloads/trusted-content-tenant/exhort:{{revision}}
2627
- name: dockerfile
2728
value: src/main/docker/Dockerfile.jvm.staged
2829
- name: path-context

.tekton/openjdk-redis-6gb.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,18 @@ spec:
1515
params:
1616
- name: JDK_IMAGE
1717
description: Reference of the image buildah will produce.
18-
default: registry.redhat.io/ubi9/openjdk-21:1.18
18+
default: registry.redhat.io/ubi9/openjdk-21:1.22
1919
- name: REDIS_IMAGE
2020
description: The location of the buildah builder image.
2121
default: docker.io/redis/redis-stack:7.2.0-v7
2222
- name: SCRIPT
2323
description: The script to execute in the jdk image
2424
default: |
25+
echo "Java version:"
26+
java -version
27+
echo "Maven version:"
28+
mvn --version
29+
echo "Running mvn verify..."
2530
mvn -B verify
2631
workspaces:
2732
- name: source

0 commit comments

Comments
 (0)