Skip to content

Commit

Permalink
Merge pull request #81 from thomasLeclaire/ci
Browse files Browse the repository at this point in the history
[charts/metabase]  CI - Update third parties
  • Loading branch information
pmint93 authored Sep 20, 2023
2 parents e6b6a85 + 15b0662 commit cd7cd68
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/helm-docs.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -euxo pipefail

HELM_DOCS_VERSION="0.15.0"
HELM_DOCS_VERSION="1.11.0"

# install helm-docs
curl --silent --show-error --fail --location --output /tmp/helm-docs.tar.gz https://github.com/norwoodj/helm-docs/releases/download/v"${HELM_DOCS_VERSION}"/helm-docs_"${HELM_DOCS_VERSION}"_Linux_x86_64.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion .github/kubeval.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -euxo pipefail

KUBEVAL_VERSION="0.15.0"
KUBEVAL_VERSION="v0.16.1"

CHART_DIRS="$(git diff --find-renames --name-only "$(git rev-parse --abbrev-ref HEAD)" remotes/origin/master -- charts | cut -d '/' -f 2 | uniq)"
SCHEMA_LOCATION="https://raw.githubusercontent.com/instrumenta/kubernetes-json-schema/master/"
Expand Down
50 changes: 31 additions & 19 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,38 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fetch history
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.12.1

- uses: actions/setup-python@v4
with:
python-version: '3.9'
check-latest: true

- name: Set up chart-testing
uses: helm/[email protected]

- name: Run chart-testing (list-changed)
id: list-changed
run: |
git fetch --prune --unshallow;
echo "commitmsg<<EOF
$(git log --format=%B -n 1 ${{ github.event.after }})
EOF" >> $GITHUB_ENV
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)
id: lint
uses: helm/[email protected]
if: "! contains(env.commitmsg, '[skip lint]')"
with:
command: lint
config: .github/ct.yaml
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch ${{ github.event.repository.default_branch }}

- name: Create kind cluster
uses: helm/[email protected]
if: "steps.lint.outputs.changed == 'true' && ! contains(env.commitmsg, '[skip install]')"
if: "steps.list-changed.outputs.changed == 'true' && ! contains(env.commitmsg, '[skip install]')"
uses: helm/[email protected]

- name: Run chart-testing (install)
uses: helm/[email protected]
if: "steps.lint.outputs.changed == 'true' && ! contains(env.commitmsg, '[skip install]')"
with:
command: install
config: .github/ct.yaml
if: "steps.list-changed.outputs.changed == 'true' && ! contains(env.commitmsg, '[skip install]')"
run: ct install --target-branch ${{ github.event.repository.default_branch }}

0 comments on commit cd7cd68

Please sign in to comment.