chore(main): [bot] release teuto-portal-k8s-worker:2.0.0 #3379
Workflow file for this run
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
name: Lint Helm Charts | |
on: | |
pull_request: | |
paths: | |
- charts/** | |
merge_group: | |
types: | |
- checks_requested | |
jobs: | |
getChangedCharts: | |
uses: ./.github/workflows/get-changed-charts.yaml | |
lint-helm-chart: | |
name: lint helm chart | |
runs-on: ubuntu-latest | |
needs: getChangedCharts | |
strategy: | |
matrix: | |
chart: ${{ fromJson(needs.getChangedCharts.outputs.charts) }} | |
env: | |
CT_TARGET_BRANCH: ${{ github.event.repository.default_branch }} | |
CHART: ${{ matrix.chart }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- run: pip install yq | |
- name: Install sponge | |
run: sudo apt-get -yq install moreutils | |
- name: Extract helm repos | |
id: helm-repos | |
run: | | |
( | |
echo -n "repos=" | |
yq -r '.dependencies[] | .repository' "charts/$CHART/Chart.yaml" | sort -u | awk '{printf (NR>1 ? "," : "") NR "=" $1}' | |
echo | |
) | tee "$GITHUB_OUTPUT" | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.7 | |
- run: ./.github/scripts/prepare-values.sh "charts/$CHART" | |
- uses: helm/[email protected] | |
- name: Lint chart | |
run: ct lint --check-version-increment=false | |
env: | |
CT_CHART_REPOS: ${{ steps.helm-repos.outputs.repos }} | |
CT_CHARTS: charts/${{ matrix.chart }} | |
- name: enforce trusted registries | |
run: ./.github/scripts/enforce-trusted-registries.sh "charts/$CHART" |