mirror of
https://github.com/outbackdingo/kamaji.git
synced 2026-01-27 10:19:29 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
56 lines
1.8 KiB
YAML
56 lines
1.8 KiB
YAML
name: Helm Chart
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "*" ]
|
|
|
|
jobs:
|
|
diff:
|
|
name: diff
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
- run: make -C charts/kamaji docs
|
|
- name: Checking if Kamaji Helm Chart docs is not aligned
|
|
run: if [[ $(git diff | wc -l) -gt 0 ]]; then echo ">>> Untracked changes have not been committed" && git --no-pager diff && exit 1; fi
|
|
- run: make -C charts/kamaji-crds docs
|
|
- name: Checking if Kamaji CRDs Helm Chart docs is not aligned
|
|
run: if [[ $(git diff | wc -l) -gt 0 ]]; then echo ">>> Untracked changes have not been committed" && git --no-pager diff && exit 1; fi
|
|
lint:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: azure/setup-helm@v4
|
|
with:
|
|
version: 3.3.4
|
|
- name: Building dependencies
|
|
run: |-
|
|
helm repo add clastix https://clastix.github.io/charts
|
|
helm dependency build ./charts/kamaji
|
|
- name: Linting Kamaji Helm Chart
|
|
run: helm lint ./charts/kamaji
|
|
- name: Linting Kamaji CRDS Helm Chart
|
|
run: helm lint ./charts/kamaji-crds
|
|
release:
|
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
|
needs: [ "lint", "diff" ]
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Publish Helm chart
|
|
uses: stefanprodan/helm-gh-pages@master
|
|
with:
|
|
token: ${{ secrets.BOT_GITHUB_TOKEN }}
|
|
charts_dir: charts
|
|
charts_url: https://clastix.github.io/charts
|
|
owner: clastix
|
|
repository: charts
|
|
branch: gh-pages
|
|
target_dir: .
|
|
commit_username: prometherion
|
|
commit_email: dario@tranchitella.eu
|