diff --git a/.github/workflows/build-and-publish.yaml b/.github/workflows/build-and-publish.yaml index 091591d..8ee8e42 100644 --- a/.github/workflows/build-and-publish.yaml +++ b/.github/workflows/build-and-publish.yaml @@ -12,7 +12,7 @@ env: jobs: docker: - runs-on: [self-hosted, Linux, small] + runs-on: mco-dev-small-x64 steps: - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 78bb880..7e47f2c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -11,7 +11,7 @@ permissions: jobs: gh-release: - runs-on: [self-hosted, Linux, small] + runs-on: mco-dev-small-x64 steps: - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/tag.yaml b/.github/workflows/tag.yaml index 3814110..d8b7cb9 100644 --- a/.github/workflows/tag.yaml +++ b/.github/workflows/tag.yaml @@ -11,7 +11,7 @@ on: jobs: tag: - runs-on: [self-hosted, Linux, small] + runs-on: mco-dev-small-x64 steps: # We need to use an external PAT here because GHA will not run downstream events if we use the built in token. - name: Checkout diff --git a/README.md b/README.md index 476aa7d..226baf6 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,17 @@ Deploy helm chart in target namespace/cluster | `rancher_url` | `string` | Rancher Server URL | | `rancher_token` | `string` | Rancher API Token | +### helm-lint + +Lint all the helm charts in the current workspace. + +```yaml + - name: Lint Helm Charts + uses: mobilecoinofficial/gha-k8s-toolbox@v1.0 + with: + action: helm-lint +``` + ### helm-release-delete Delete a helm release in the target namespace/cluster. diff --git a/entrypoint.sh b/entrypoint.sh index bf508d7..5c755fe 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -306,6 +306,19 @@ then fi ;; + helm-lint) + # Lint all the helm charts in the repo + chart_files=$(find . -name Chart.yaml -type f) + + # helm lint on directories where there are chart.yaml files + for c in ${chart_files} + do + chart=$(dirname "${c}") + echo "-- Linting ${chart}" + helm lint --quiet "${chart}" 2>&1 + done + ;; + helm-release-delete) # Delete a helm release rancher_get_kubeconfig