mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-03 16:37:04 +02:00
feat(common): Release common library 3.7.1 (#383)
Co-authored-by: Aisling McGinn <me@aisling.dev>
This commit is contained in:
parent
c94a28baa3
commit
433f6d132b
146 changed files with 232 additions and 222 deletions
65
.github/workflows/charts-lint.yaml
vendored
65
.github/workflows/charts-lint.yaml
vendored
|
@ -3,75 +3,44 @@ name: "Charts: Lint"
|
|||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
checkoutCommit:
|
||||
required: true
|
||||
type: string
|
||||
isRenovatePR:
|
||||
required: true
|
||||
default: "false"
|
||||
type: string
|
||||
chartsToLint:
|
||||
charts:
|
||||
description: >
|
||||
A JSON encoded array of charts to lint
|
||||
required: true
|
||||
type: string
|
||||
overrideDeps:
|
||||
description: >
|
||||
A JSON encoded array of dependencies to override before linting
|
||||
type: string
|
||||
required: false
|
||||
Json encoded list of Helm charts to release.
|
||||
Defaults to releasing everything.
|
||||
default: "[]"
|
||||
|
||||
env:
|
||||
HELM_VERSION: 3.11.2
|
||||
required: true
|
||||
type: string
|
||||
helmVersion:
|
||||
description: >
|
||||
Helm version to use.
|
||||
default: "3.11.2"
|
||||
required: false
|
||||
type: string
|
||||
|
||||
jobs:
|
||||
lint-chart:
|
||||
if: ${{ inputs.chartsToLint != '[]' }}
|
||||
if: ${{ inputs.charts != '[]' && inputs.charts != '' }}
|
||||
name: Lint chart
|
||||
strategy:
|
||||
matrix:
|
||||
chart: ${{ fromJSON(inputs.chartsToLint) }}
|
||||
chart: ${{ fromJSON(inputs.charts) }}
|
||||
fail-fast: false
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{ inputs.checkoutCommit }}
|
||||
|
||||
- name: Verify chart version
|
||||
uses: bjw-s/helm-charts-actions/verify-chart-version@main
|
||||
id: verify-chart-version
|
||||
with:
|
||||
chart: "charts/${{ matrix.chart }}"
|
||||
|
||||
- name: Verify chart changelog
|
||||
uses: bjw-s/helm-charts-actions/verify-chart-changelog@main
|
||||
if: inputs.isRenovatePR != 'true'
|
||||
id: verify-chart-changelog
|
||||
with:
|
||||
chart: "charts/${{ matrix.chart }}"
|
||||
|
||||
- name: Install Kubernetes tools
|
||||
uses: yokawasa/action-setup-kube-tools@v0.11.1
|
||||
uses: yokawasa/action-setup-kube-tools@v0.11.2
|
||||
with:
|
||||
setup-tools: |
|
||||
helmv3
|
||||
helm: "${{ env.HELM_VERSION }}"
|
||||
helm: "${{ inputs.helmVersion }}"
|
||||
|
||||
- name: Set up chart-testing
|
||||
uses: helm/chart-testing-action@v2.6.1
|
||||
uses: helm/chart-testing-action@v2.7.0
|
||||
|
||||
- name: Override chart dependencies
|
||||
uses: ./.github/actions/override-chart-deps
|
||||
if: ${{ inputs.overrideDeps != '[]' }}
|
||||
with:
|
||||
chart: ${{ matrix.chart }}
|
||||
overrides: ${{ inputs.overrideDeps }}
|
||||
|
||||
- name: Dereference JSON schema before packaging
|
||||
- name: Dereference JSON schema
|
||||
uses: bjw-s/helm-charts-actions/dereference-json-schema@main
|
||||
with:
|
||||
schemaFile: "charts/${{ matrix.chart }}/values.schema.json"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue