Skip to content

Commit

Permalink
add-trigger-action (#160)
Browse files Browse the repository at this point in the history
Co-authored-by: JasonPowr <[email protected]>
  • Loading branch information
JasonPowr and JasonPowr authored Mar 15, 2024
1 parent 96e9f8d commit 9d44091
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/trigger-konflux-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Trigger Konflux build
on:
workflow_dispatch:

jobs:
trigger-konflux-build:
uses: securesign/actions/.github/workflows/trigger-konflux-build.yaml@main
with:
branch: main
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .tekton/client-server-cg-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +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" && ( "Dockerfile.client-server-cg.rh".pathChanged() || ".tekton/client-server-cg-pull-request.yaml".pathChanged())
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main" && ( "Dockerfile.client-server-cg.rh".pathChanged() || ".tekton/client-server-cg-pull-request.yaml".pathChanged() || "trigger-konflux-builds.txt".pathChanged() )
creationTimestamp: null
labels:
appstudio.openshift.io/application: cli
Expand Down
2 changes: 1 addition & 1 deletion .tekton/client-server-re-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +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" && ( "Dockerfile.client-server-re.rh".pathChanged() || ".tekton/client-server-re-pull-request.yaml".pathChanged())
pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main" && ( "Dockerfile.client-server-re.rh".pathChanged() || ".tekton/client-server-re-pull-request.yaml".pathChanged() || "trigger-konflux-builds.txt".pathChanged())
creationTimestamp: null
labels:
appstudio.openshift.io/application: cli
Expand Down

0 comments on commit 9d44091

Please sign in to comment.