diff --git a/.github/workflows/on_pull_request.yaml b/.github/workflows/on_pull_request.yaml new file mode 100644 index 0000000..df50f57 --- /dev/null +++ b/.github/workflows/on_pull_request.yaml @@ -0,0 +1,18 @@ +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 + with: + microk8s-channel: 1.26-strict/stable + juju-channel: 3.1/stable + python-version: "3.8" + rockcraft-channel: latest/stable diff --git a/.github/workflows/on_push.yaml b/.github/workflows/on_push.yaml new file mode 100644 index 0000000..5586356 --- /dev/null +++ b/.github/workflows/on_push.yaml @@ -0,0 +1,21 @@ +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 + with: + microk8s-channel: 1.26-strict/stable + juju-channel: 3.1/stable + python-version: "3.8" + rockcraft-channel: latest/stable