Skip to content

Commit

Permalink
ci(digitalhub): fixed lint actions and updated actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Calcagiara committed Feb 11, 2025
1 parent 765cf46 commit 4558be9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
6 changes: 0 additions & 6 deletions .github/linters/ct.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
# See https://github.com/helm/chart-testing#configuration
remote: origin
target-branch: main
chart-dirs:
- charts
chart-repos:
- bitnami=https://charts.bitnami.com/bitnami
- prometheus-community=https://prometheus-community.github.io/helm-charts
- docker-registry=https://helm.twun.io
- digitalhub=https://scc-digitalhub.github.io/digitalhub/
- zalando=https://opensource.zalando.com/postgres-operator/charts/postgres-operator
helm-extra-args: --timeout 600s
excluded-charts:
- coder
- mlrun
- mlrun-ce
- nakamasato-mysql-operator
- ext-postgres-operator
additional-commands:
- sh -ec "if [ -f '{{ .Path }}/ci/lint.sh' ]; then shellcheck '{{ .Path }}/ci/lint.sh'; bash '{{ .Path }}/ci/lint.sh'; fi"
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
- name: Set up Helm
uses: azure/setup-helm@v4
with:
version: v3.12.0
version: v3.17.0

- name: Set up chart-testing
uses: helm/chart-testing-action@v2.6.1
uses: helm/chart-testing-action@v2.7.0

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed="$(ct list-changed --config .github/linters/ct.yaml)"
changed="$(ct list-changed --target-branch ${{ github.event.pull_request.base.ref }} --config .github/linters/ct.yaml)"
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
Expand All @@ -34,7 +34,8 @@ jobs:
# helm plugin install https://github.com/quintush/helm-unittest.git --version 0.2.8

- name: Run chart-testing (lint)
run: ct lint --config .github/linters/ct.yaml
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch ${{ github.event.pull_request.base.ref }} --config .github/linters/ct.yaml

# - name: Create kind cluster
# uses: helm/[email protected]
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,25 +57,19 @@ jobs:
- name: Set up Helm
uses: Azure/setup-helm@v4
with:
version: v3.14.4
version: v3.17.0

- name: Add dependency chart repos
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add docker-registry https://helm.twun.io
helm repo add postgres-operator https://opensource.zalando.com/postgres-operator/charts/postgres-operator
helm repo add digitalhub https://scc-digitalhub.github.io/digitalhub/
helm repo add coder-v2 https://helm.coder.com/v2
#temp remove after merging mlrun-ce
helm repo add stable https://charts.helm.sh/stable
helm repo add nuclio https://nuclio.github.io/nuclio/charts
helm repo add v3io-stable https://v3io.github.io/helm-charts/stable
helm repo add minio https://charts.min.io/
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
uses: helm/chart-releaser-action@v1.7.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_GENERATE_RELEASE_NOTES: false
Expand Down

0 comments on commit 4558be9

Please sign in to comment.