Skip to content

Commit

Permalink
Merge pull request #224 from securesign/update-konflux-ref
Browse files Browse the repository at this point in the history
Enable hermetic builds, build source image and prefetch, changed url to securesign, update cel expressions
  • Loading branch information
JasonPowr authored Aug 7, 2024
2 parents abbed8b + 4d448db commit a412817
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
17 changes: 11 additions & 6 deletions .tekton/client-server-f-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ metadata:
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'
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
== "main"
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main" && ( "Dockerfile.client-server-f.rh".pathChanged() || ".tekton/client-server-f-pull-request.yaml".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: cli
Expand All @@ -23,11 +22,17 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/rhtas-tenant/cli/client-server-f:on-pr-{{revision}}
value: quay.io/securesign/client-server-f:on-pr-{{revision}}
- name: image-expires-after
value: 5d
- name: dockerfile
value: Dockerfile.client-server-f.rh
- name: prefetch-input
value: ''
- name: hermetic
value: "true"
- name: build-source-image
value: "true"
pipelineSpec:
finally:
- name: show-sbom
Expand Down Expand Up @@ -199,10 +204,10 @@ spec:
value: task
resolver: bundles
when:
- input: $(params.prefetch-input)
operator: notin
- input: $(params.hermetic)
operator: in
values:
- ""
- "true"
workspaces:
- name: source
workspace: workspace
Expand Down
17 changes: 11 additions & 6 deletions .tekton/client-server-f-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ 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
== "main"
pipelinesascode.tekton.dev/on-cel-expression: event == "push" && target_branch == "main" && ( "Dockerfile.client-server-f.rh".pathChanged() || ".tekton/client-server-f-push.yaml".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: cli
Expand All @@ -22,9 +21,15 @@ spec:
- name: revision
value: '{{revision}}'
- name: output-image
value: quay.io/redhat-user-workloads/rhtas-tenant/cli/client-server-f:{{revision}}
value: quay.io/securesign/client-server-f:{{revision}}
- name: dockerfile
value: Dockerfile.client-server-f.rh
- name: prefetch-input
value: ''
- name: hermetic
value: "true"
- name: build-source-image
value: "true"
pipelineSpec:
finally:
- name: show-sbom
Expand Down Expand Up @@ -196,10 +201,10 @@ spec:
value: task
resolver: bundles
when:
- input: $(params.prefetch-input)
operator: notin
- input: $(params.hermetic)
operator: in
values:
- ""
- "true"
workspaces:
- name: source
workspace: workspace
Expand Down

0 comments on commit a412817

Please sign in to comment.