-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update Helm setup and linting process
- Loading branch information
jay-bisonai
committed
Feb 8, 2024
1 parent
351e0f6
commit 32c927d
Showing
1 changed file
with
20 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,6 @@ on: | |
push: | ||
branches: | ||
- i-56/feat/ci-helm-lint | ||
paths: | ||
- '**/*.yaml' | ||
- '**/templates/*.tpl' | ||
- '**/templates/*.yaml' | ||
- '**/**/templates/*.yaml' | ||
# pull_request: | ||
# types: | ||
# - closed | ||
|
@@ -30,13 +25,26 @@ jobs: | |
uses: actions/checkout@v2 | ||
|
||
- name: Set up Helm | ||
uses: azure/setup-helm@v1 | ||
uses: azure/setup-helm@v3 | ||
with: | ||
version: v3.12.1 | ||
|
||
- name: Install Helm dependencies | ||
run: helm dependency update | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
check-latest: true | ||
|
||
- name: Run Helm lint | ||
- name: Setup chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: List changed helm charts | ||
run: | | ||
for chart in $(find . -name "Chart.yaml" -exec dirname {} \;); do | ||
helm lint $chart | ||
done | ||
changed=$(ct list-changed --target-branch i-56/feat/ci-helm-lint) | ||
# changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) | ||
if [[ -n "$changed" ]]; then | ||
echo "changed=true" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Run Helm lint to changed charts | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: ct lint --target-branch i-56/feat/ci-helm-lint |