From da8d4834785f483d2a3798a1171e078198a8adfc Mon Sep 17 00:00:00 2001 From: Andrew Scribner Date: Wed, 17 Jan 2024 15:53:31 -0500 Subject: [PATCH] add pull request and push ci for rocks --- .github/workflows/on_pull_request.yaml | 13 +++++++++++++ .github/workflows/on_push.yaml | 16 ++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/on_pull_request.yaml create mode 100644 .github/workflows/on_push.yaml diff --git a/.github/workflows/on_pull_request.yaml b/.github/workflows/on_pull_request.yaml new file mode 100644 index 0000000..54d0180 --- /dev/null +++ b/.github/workflows/on_pull_request.yaml @@ -0,0 +1,13 @@ +name: On Pull Request + +on: + pull_request: + +jobs: + + on-pull-request: + name: Get ROCKs modified and build-scan-test them + uses: canonical/charmed-kubeflow-workflows/.github/workflows/get-rocks-modified-and-build-scan-test-publish.yaml@main + permissions: + pull-requests: read + secrets: inherit diff --git a/.github/workflows/on_push.yaml b/.github/workflows/on_push.yaml new file mode 100644 index 0000000..9704e46 --- /dev/null +++ b/.github/workflows/on_push.yaml @@ -0,0 +1,16 @@ +name: On Push + +on: + push: + branches: + - main + - track/** + +jobs: + + on-push: + name: Get ROCKs modified and build-scan-test-publish them + uses: canonical/charmed-kubeflow-workflows/.github/workflows/get-rocks-modified-and-build-scan-test-publish.yaml@main + permissions: + pull-requests: read + secrets: inherit