From d031dd76f428c4b2cb1bc02c172b7b87a249d007 Mon Sep 17 00:00:00 2001 From: Marcel Wallschlaeger Date: Fri, 4 Aug 2023 22:32:02 +0200 Subject: [PATCH 1/3] gh action to check template linting --- .github/workflows/helm-lint-check.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/helm-lint-check.yaml diff --git a/.github/workflows/helm-lint-check.yaml b/.github/workflows/helm-lint-check.yaml new file mode 100644 index 0000000..82852d6 --- /dev/null +++ b/.github/workflows/helm-lint-check.yaml @@ -0,0 +1,23 @@ +name: helm lint test +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] +jobs: + helm-check: + runs-on: ubuntu-latest + steps: + - uses: azure/setup-helm@v3 + with: + version: '3.12.0' # default is latest (stable) + - name: build dependencies + run: | + helm dependency update + working-directory: ./deployment/geonode/ + - uses: actions/checkout@master + - name: helm-check + uses: igabaydulin/helm-check-action@0.1.4 + env: + CHART_LOCATION: ./deployment/geonode/ + CHART_VALUES: ./minikube-values.yaml From 2c7fc42f93223efdf4fca9ba0828c381686c5de3 Mon Sep 17 00:00:00 2001 From: Marcel Wallschlaeger Date: Sat, 5 Aug 2023 01:00:49 +0200 Subject: [PATCH 2/3] added missing checkout action --- .github/workflows/helm-lint-check.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/helm-lint-check.yaml b/.github/workflows/helm-lint-check.yaml index 82852d6..ef13bce 100644 --- a/.github/workflows/helm-lint-check.yaml +++ b/.github/workflows/helm-lint-check.yaml @@ -4,18 +4,22 @@ on: branches: ["main"] pull_request: branches: ["main"] + +permissions: + contents: read + jobs: helm-check: runs-on: ubuntu-latest steps: - - uses: azure/setup-helm@v3 + - name: checkout repository + uses: actions/checkout@v3 + - name: install helm + uses: azure/setup-helm@v3 with: version: '3.12.0' # default is latest (stable) - name: build dependencies - run: | - helm dependency update - working-directory: ./deployment/geonode/ - - uses: actions/checkout@master + run: helm dependency update deployment/geonode/ - name: helm-check uses: igabaydulin/helm-check-action@0.1.4 env: From 6c6aeaeb55cd6bee05a67b5e49ad8b945cd5cfda Mon Sep 17 00:00:00 2001 From: mwallschlaeger Date: Mon, 7 Aug 2023 10:07:55 +0200 Subject: [PATCH 3/3] changed values file to values.yaml --- .github/workflows/helm-lint-check.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/helm-lint-check.yaml b/.github/workflows/helm-lint-check.yaml index ef13bce..8d35b4f 100644 --- a/.github/workflows/helm-lint-check.yaml +++ b/.github/workflows/helm-lint-check.yaml @@ -17,11 +17,11 @@ jobs: - name: install helm uses: azure/setup-helm@v3 with: - version: '3.12.0' # default is latest (stable) + version: '3.12.0' # default is latest (stable) - name: build dependencies - run: helm dependency update deployment/geonode/ + run: helm dependency update deployment/geonode/ - name: helm-check uses: igabaydulin/helm-check-action@0.1.4 env: CHART_LOCATION: ./deployment/geonode/ - CHART_VALUES: ./minikube-values.yaml + CHART_VALUES: ./deployment/geonode/values.yaml