Merge branch 'main' into immich-update
This commit is contained in:
commit
b496232575
1 changed files with 38 additions and 6 deletions
|
@ -12,7 +12,8 @@ on:
|
|||
- 'main'
|
||||
|
||||
jobs:
|
||||
chart-testing:
|
||||
charts-changed:
|
||||
name: Get Charts being Changed
|
||||
runs-on: flakes-action
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
@ -32,9 +33,10 @@ jobs:
|
|||
reposChanged: ${{ steps.changed-charts.outputs.reposChanged }}
|
||||
changesExist: ${{ env.changesExist }}
|
||||
|
||||
validation:
|
||||
needs: chart-testing
|
||||
if: needs.chart-testing.outputs.changesExist == 'true'
|
||||
validate-linting:
|
||||
name: "Validate: Linting"
|
||||
needs: charts-changed
|
||||
if: needs.charts-changed.outputs.changesExist == 'true'
|
||||
runs-on: flakes-action
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
@ -42,20 +44,50 @@ jobs:
|
|||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Process Changed Repositories
|
||||
- name: Linting Changed Repositories
|
||||
run: |
|
||||
repos='${{ needs.chart-testing.outputs.reposChanged }}'
|
||||
repos='${{ needs.charts-changed.outputs.reposChanged }}'
|
||||
for repo in $(echo $repos | jq -r '.[]'); do
|
||||
echo "Linting $repo"
|
||||
ct --config .forgejo/ct.yaml lint "$repo"
|
||||
done
|
||||
|
||||
validate-audit:
|
||||
name: "Validate: Audit"
|
||||
needs: charts-changed
|
||||
if: needs.charts-changed.outputs.changesExist == 'true'
|
||||
runs-on: flakes-action
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Auditing changed charts
|
||||
run: |
|
||||
repos='${{ needs.charts-changed.outputs.reposChanged }}'
|
||||
for repo in $(echo $repos | jq -r '.[]'); do
|
||||
echo "Auditing $repo"
|
||||
polaris audit --helm-chart "$repo" \
|
||||
--helm-values "$repo/values.yaml" \
|
||||
--format pretty \
|
||||
--set-exit-code-on-danger \
|
||||
--set-exit-code-below-score 90
|
||||
done
|
||||
|
||||
validate-api:
|
||||
name: "Validate: Outdated APIs"
|
||||
needs: charts-changed
|
||||
if: needs.charts-changed.outputs.changesExist == 'true'
|
||||
runs-on: flakes-action
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Checking changed charts for outdated APIs
|
||||
run: |
|
||||
repos='${{ needs.charts-changed.outputs.reposChanged }}'
|
||||
for repo in $(echo $repos | jq -r '.[]'); do
|
||||
echo "Checking deprecated apiVersions for $repo"
|
||||
helm template "$repo" -f "$repo/ci/pluto-values.yaml" | pluto detect - --ignore-deprecations
|
||||
done
|
Loading…
Reference in a new issue