Skip to content

feat(helm): bump versions #117

feat(helm): bump versions

feat(helm): bump versions #117

name: Publish Chart
on:
push:
branches:
- main
paths:
- 'helm/**'
tags:
- '*'
jobs:
lint-chart:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Helm
uses: azure/setup-helm@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.12.0'
check-latest: true
- name: Cache dependecies
uses: actions/cache@v4
with:
path: ~/.cache
key: ${{ runner.os }}-helm-${{ hashFiles('**/Chart.yaml') }}
restore-keys: |
${{ runner.os }}-helm-${{ hashFiles('**/Chart.yaml') }}
- name: Create Kind Cluster
uses: helm/[email protected]
- name: Run Chart testing
uses: helm/[email protected]
with:
config: ct.yaml
release:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
runs-on: ubuntu-latest
needs:
- lint-chart
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Copy CRDs to it's chart
run: |
cp -rf config/crd/bases/* helm/osko-crds/charts/crds/templates/
cp -rf config/crd/bases/* helm/osko/charts/crds/templates/
- name: Install Helm
uses: azure/setup-helm@v3
- name: Add dependency chart repos
run: |
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
charts_dir: helm
skip_existing: false
packages_with_index: true