From 7f701c7373c07e90b78e9a494575f3d64fcaaced Mon Sep 17 00:00:00 2001 From: Delnat Wito Date: Tue, 4 Oct 2022 17:10:11 +0200 Subject: [PATCH] feat: add CI with Monokle Action --- .github/workflows/main.yml | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 02a17e4..a508ad6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,12 +1,26 @@ +name: Test Kubernetes on: [push] jobs: validate_job: runs-on: ubuntu-latest - name: Validate Monokle resources + permissions: + security-events: write + name: Validate with Monokle steps: - - name: Validate - id: validate - uses: kubeshop/monokle-action@v0.1.0 + - id: checkout + uses: actions/checkout@master + - id: bake + uses: azure/k8s-bake@v2.2 with: - milliseconds: "350" + renderEngine: "kustomize" + kustomizationPath: "./kustomize-happy-cms/overlays/local" + - id: validate + uses: kubeshop/monokle-action@v0.1.4 + with: + path: ${{ steps.bake.outputs.manifestsBundle }} + - id: upload-sarif + if: always() + uses: github/codeql-action/upload-sarif@v2 + with: + sarif_file: ${{ steps.validate.outputs.sarif }}