Skip to content

chore: update chart #14

chore: update chart

chore: update chart #14

Workflow file for this run

name: Helm chart
on:
push:
branches: [ main ]
paths:
- 'chart/**'
pull_request:
branches: [ main ]
paths:
- 'chart/**'
jobs:
lint:
name: Run linter
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Helm
uses: azure/setup-helm@v4
- name: Lint
run: helm lint chart
validation:
name: Validate manifests
runs-on: ubuntu-latest
strategy:
matrix:
version: ['1.29.8', '1.30.4', '1.31.0']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Helm
uses: azure/setup-helm@v4
- name: Install plugin
run: helm plugin install https://github.com/jtyr/kubeconform-helm
- name: Validate
run: helm kubeconform --summary -f .github/values.yml chart
version-bump:
name: Check version bump
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check version bump
run: |
version="$(grep 'version:' ./chart/Chart.yaml | tail -n1 | awk '{ print $2 }')"
! helm show chart oci://ghcr.io/chialab/helm-charts/print2pdf-go --version ${version} >/dev/null 2>&1 || (echo "Did you forget to increase Chart version?"; exit 1)
release-chart:
name: Package and release Helm chart
if: ${{ github.event_name != 'pull_request' }}
needs: [lint, validation, version-bump]
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GitHub Packages
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Helm
uses: azure/setup-helm@v4
- name: Package chart
run: helm package chart
- name: Publish chart
run: |
version="$(grep 'version:' ./chart/Chart.yaml | tail -n1 | awk '{ print $2 }')"
helm push "print2pdf-go-${version}.tgz" oci://ghcr.io/chialab/helm-charts