From e979f2b03cc09b81553bba258a68a3e26624038a Mon Sep 17 00:00:00 2001 From: Karl Rister Date: Wed, 25 Sep 2024 12:54:12 -0500 Subject: [PATCH 1/2] add the crucible-ci.yaml and faux-crucible-ci.yaml GitHub workflows --- .github/workflows/crucible-ci.yaml | 24 ++++++++++++++++++++++++ .github/workflows/faux-crucible-ci.yaml | 16 ++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .github/workflows/crucible-ci.yaml create mode 100644 .github/workflows/faux-crucible-ci.yaml diff --git a/.github/workflows/crucible-ci.yaml b/.github/workflows/crucible-ci.yaml new file mode 100644 index 0000000..6ab5b8d --- /dev/null +++ b/.github/workflows/crucible-ci.yaml @@ -0,0 +1,24 @@ +name: crucible-ci + +on: + pull_request: + branches: [ master ] + paths-ignore: + - LICENSE + - '**.md' + - .github/workflows/run-crucible-tracking.yaml + - .github/workflows/crucible-merged.yaml + - .github/workflows/faux-crucible-ci.yaml + - 'docs/**' + workflow_dispatch: + +jobs: + call-tool-crucible-ci: + uses: perftool-incubator/crucible-ci/.github/workflows/tool-crucible-ci.yaml@main + with: + ci_target: "kernel" + ci_target_branch: "${{ github.ref }}" + github_workspace: "$GITHUB_WORKSPACE" + secrets: + ci_registry_auth: ${{ secrets.CRUCIBLE_CI_ENGINES_REGISTRY_AUTH }} + quay_oauth_token: ${{ secrets.CRUCIBLE_QUAYIO_OAUTH_TOKEN }} diff --git a/.github/workflows/faux-crucible-ci.yaml b/.github/workflows/faux-crucible-ci.yaml new file mode 100644 index 0000000..b99dad7 --- /dev/null +++ b/.github/workflows/faux-crucible-ci.yaml @@ -0,0 +1,16 @@ +name: faux-crucible-ci + +on: + pull_request: + branches: [ master ] + paths: + - LICENSE + - '**.md' + - .github/workflows/run-crucible-tracking.yaml + - .github/workflows/crucible-merged.yaml + - .github/workflows/faux-crucible-ci.yaml + - 'docs/**' + +jobs: + call-tool-crucible-ci: + uses: perftool-incubator/crucible-ci/.github/workflows/faux-tool-crucible-ci.yaml@main From 57804fff8515d15a78fc148dfcfaa9e1bd65987c Mon Sep 17 00:00:00 2001 From: Karl Rister Date: Wed, 25 Sep 2024 12:54:52 -0500 Subject: [PATCH 2/2] add the crucible-merged.yaml GitHub workflow --- .github/workflows/crucible-merged.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/crucible-merged.yaml diff --git a/.github/workflows/crucible-merged.yaml b/.github/workflows/crucible-merged.yaml new file mode 100644 index 0000000..48db4c5 --- /dev/null +++ b/.github/workflows/crucible-merged.yaml @@ -0,0 +1,25 @@ +name: crucible-merged + +on: + pull_request_target: + types: [ closed ] + branches: [ master ] + paths-ignore: + - LICENSE + - '**.md' + - .github/workflows/run-crucible-tracking.yaml + - .github/workflows/faux-crucible-ci.yaml + - 'docs/**' + workflow_dispatch: + +jobs: + call-tool-crucible-ci_if-merged: + if: github.event.pull_request.merged == true + uses: perftool-incubator/crucible-ci/.github/workflows/tool-crucible-ci.yaml@main + with: + ci_target: "kernel" + ci_target_branch: "master" + github_workspace: "$GITHUB_WORKSPACE" + secrets: + production_registry_auth: ${{ secrets.CRUCIBLE_PRODUCTION_ENGINES_REGISTRY_AUTH }} + quay_oauth_token: ${{ secrets.CRUCIBLE_QUAYIO_OAUTH_TOKEN }}