From e4ac8caaa4acdfb3caea8598ccd814a61318f6b6 Mon Sep 17 00:00:00 2001 From: JasonPowr <20076537@mail.wit.ie> Date: Fri, 15 Mar 2024 12:20:25 +0000 Subject: [PATCH] add-tigger-action --- .github/workflows/trigger-konflux-build.yaml | 11 +++++++++++ .tekton/database-pull-request.yaml | 2 +- .tekton/logserver-pull-request.yaml | 2 +- .tekton/logsigner-pull-request.yaml | 2 +- 4 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/trigger-konflux-build.yaml diff --git a/.github/workflows/trigger-konflux-build.yaml b/.github/workflows/trigger-konflux-build.yaml new file mode 100644 index 0000000000..828aba5e77 --- /dev/null +++ b/.github/workflows/trigger-konflux-build.yaml @@ -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 }} diff --git a/.tekton/database-pull-request.yaml b/.tekton/database-pull-request.yaml index c8f633c0eb..c3df465a81 100644 --- a/.tekton/database-pull-request.yaml +++ b/.tekton/database-pull-request.yaml @@ -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" && ( "60-load-db.sh".pathChanged() || "examples/deployment/docker/db_server/mysql.cnf".pathChanged() || "storage/mysql/schema/storage.sql".pathChanged() || ".tekton/database-pull-request.yaml".pathChanged() || "Dockerfile.database.rh".pathChanged() ) + pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main" && ( "60-load-db.sh".pathChanged() || "examples/deployment/docker/db_server/mysql.cnf".pathChanged() || "storage/mysql/schema/storage.sql".pathChanged() || ".tekton/database-pull-request.yaml".pathChanged() || "Dockerfile.database.rh".pathChanged() || "trigger-konflux-builds.txt".pathChanged() ) creationTimestamp: null labels: appstudio.openshift.io/application: trillian diff --git a/.tekton/logserver-pull-request.yaml b/.tekton/logserver-pull-request.yaml index d41b41ced8..f03bb3fe50 100644 --- a/.tekton/logserver-pull-request.yaml +++ b/.tekton/logserver-pull-request.yaml @@ -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" && ( "go.mod".pathChanged() || "go.sum".pathChanged() || ".tekton/logserver-pull-request.yaml".pathChanged() || "Dockerfile.logserver.rh".pathChanged() || "cmd/trillian_log_server/***".pathChanged() ) + pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main" && ( "go.mod".pathChanged() || "go.sum".pathChanged() || ".tekton/logserver-pull-request.yaml".pathChanged() || "Dockerfile.logserver.rh".pathChanged() || "cmd/trillian_log_server/***".pathChanged() || "trigger-konflux-builds.txt".pathChanged() ) creationTimestamp: null labels: appstudio.openshift.io/application: trillian diff --git a/.tekton/logsigner-pull-request.yaml b/.tekton/logsigner-pull-request.yaml index 9a2658c037..9e9d82c1a6 100644 --- a/.tekton/logsigner-pull-request.yaml +++ b/.tekton/logsigner-pull-request.yaml @@ -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" && ( "go.mod".pathChanged() || "go.sum".pathChanged() || ".tekton/logsigner-pull-request.yaml".pathChanged() || "Dockerfile.logsigner.rh".pathChanged() || "cmd/trillian_log_signer/***".pathChanged() ) + pipelinesascode.tekton.dev/on-cel-expression: event == "pull_request" && target_branch == "main" && ( "go.mod".pathChanged() || "go.sum".pathChanged() || ".tekton/logsigner-pull-request.yaml".pathChanged() || "Dockerfile.logsigner.rh".pathChanged() || "cmd/trillian_log_signer/***".pathChanged() || "trigger-konflux-builds.txt".pathChanged() ) creationTimestamp: null labels: appstudio.openshift.io/application: trillian