Skip to content

Support Kubernetes 1.35 #3

Support Kubernetes 1.35

Support Kubernetes 1.35 #3

Workflow file for this run

name: Helm chart
on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- 'charts/**'
push:
branches:
- main
paths:
- 'charts/**'
permissions:
contents: read
packages: write
jobs:
helm:
name: Push Helm chart
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: docker/login-action@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push chart
if: github.ref_name == 'main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
run: |
set -eu -o pipefail -x
tag="$(git describe --tags)"
sed -i -r "s/^(appV|v)ersion *:.*$/\1ersion: $tag/" charts/Chart.yaml
helm package charts
helm push "carina-csi-driver-${tag}.tgz" "oci://ghcr.io/kilnfi/helm-charts"