Removed eds logo and adapted httpd probes #14
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: Chart CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
jobs: | ||
lint-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Helm | ||
uses: azure/setup-helm@v4.2.0 | ||
with: | ||
version: v3.14.4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
check-latest: true | ||
- name: Set up chart-testing | ||
uses: helm/chart-testing-action@v2.6.1 | ||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) | ||
if [[ -n "$changed" ]]; then | ||
echo "changed=true" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Run chart-testing (lint) | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: | | ||
helm repo add bitnami https://charts.bitnami.com/bitnami | ||
ct lint --target-branch ${{ github.event.repository.default_branch }} | ||
- name: Create kind cluster | ||
if: steps.list-changed.outputs.changed == 'true' | ||
uses: helm/kind-action@v1.10.0 | ||
- name: Run chart-testing (install) | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: ct install --target-branch ${{ github.event.repository.default_branch }} | ||
scan: | ||
runs-on: ubuntu-latest | ||
needs: lint-test | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Validate Helm Chart | ||
uses: shivjm/helm-kubeconform-action@v0.2.0 | ||
with: | ||
additionalSchemaPaths: | | ||
schemas/{{ .ResourceKind }}.json | ||
strict: "true" | ||
chartsDirectory: "charts" | ||
ignoreMissingSchemas: "true" | ||
kubernetesVersion: "1.24.0" | ||
generate-doc: | ||
needs: kubeconform | ||
Check failure on line 70 in .github/workflows/chart-ci.yaml GitHub Actions / Chart CIInvalid workflow file
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Cache chart dir | ||
id: cache-dir | ||
uses: actions/cache@v4 | ||
with: | ||
path: charts | ||
key: ${{ runner.os }}-redcap-chart | ||
- name: Helm-docs | ||
uses: losisin/helm-docs-github-action@v1.3.3 | ||
with: | ||
chart-search-root: ./charts/redcap | ||
values-file : ./values.yaml | ||
output-file: ./README.md | ||
template-files: ./README.md.gotpl | ||
sort-values-order: file | ||
- name: Generate values schema json | ||
uses: losisin/helm-values-schema-json-action@v1.5.3 | ||
with: | ||
input: ./charts/redcap/values.yaml | ||
output: ./charts/redcap/values.schema.json | ||
release: | ||
needs: generate-doc | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Cache chart dir | ||
id: cache-dir | ||
uses: actions/cache@v4 | ||
with: | ||
path: charts | ||
key: ${{ runner.os }}-redcap-chart | ||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | ||
- name: Install Helm | ||
uses: azure/setup-helm@v4 | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: Run chart-releaser | ||
uses: helm/chart-releaser-action@v1.6.0 | ||
env: | ||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" |