Skip to content

Commit

Permalink
Refactored gh workflow and added repo install for chart releaser action
Browse files Browse the repository at this point in the history
  • Loading branch information
Kévin ZGRZENDEK committed Nov 26, 2024
1 parent d712c08 commit ad915dd
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/chart-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ jobs:
with:
version: v3.14.4

- name: Add Helm repositories
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
- name: Setup Helm plugins
run: |
helm plugin install https://github.com/jtyr/kubeconform-helm
- uses: actions/setup-python@v5
with:
python-version: '3.x'
Expand All @@ -39,13 +47,11 @@ jobs:
- 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: Run Helm Kubeconform plugin
- name: Run chart-testing (kubeconform)
if: steps.list-changed.outputs.changed == 'true'
run: |
helm plugin install https://github.com/jtyr/kubeconform-helm
helm kubeconform ./charts/redcap --output json --kubernetes-version "1.24.0" --strict --summary
- name: Create kind cluster
Expand Down Expand Up @@ -115,7 +121,11 @@ jobs:
uses: azure/setup-helm@v4
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"


- name: Add Helm repositories
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
env:
Expand Down

0 comments on commit ad915dd

Please sign in to comment.