Skip to content

Removed eds logo and adapted httpd probes #14

Removed eds logo and adapted httpd probes

Removed eds logo and adapted httpd probes #14

Workflow file for this run

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

View workflow run for this annotation

GitHub Actions / Chart CI

Invalid workflow file

The workflow is not valid. .github/workflows/chart-ci.yaml (Line: 70, Col: 12): Job 'generate-doc' depends on unknown job 'kubeconform'. .github/workflows/chart-ci.yaml (Line: 102, Col: 12): Job 'release' depends on job 'generate-doc' which creates a cycle in the dependency graph.
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 }}"