Skip to content

v23.1.18

v23.1.18 #120

# Copyright 2021 Redpanda Data, Inc.
#
# Use of this software is governed by the Business Source License
# included in the file licenses/BSL.md
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the Apache License, Version 2.0
name: helm chart release
on:
release:
types: [published]
jobs:
helm-release:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Package helm chart
working-directory: src/go/k8s/helm-chart/charts
run: |
helm package redpanda-operator \
--dependency-update \
--version ${{ github.event.release.tag_name }} \
--app-version ${{ github.event.release.tag_name }}
- name: Upload helm package to release
uses: svenstaro/[email protected]
with:
file: src/go/k8s/helm-chart/charts/redpanda-operator-${{ github.event.release.tag_name }}.tgz
asset_name: redpanda-operator-${{ github.event.release.tag_name }}.tgz
- name: Update helm chart repo index
if: contains(github.event.release.tag_name, '-') == false
uses: docker://quay.io/helmpack/chart-releaser:v1.4.0
env:
CR_OWNER: ${{ github.repository_owner }}
CR_GIT_REPO: redpanda
CR_INDEX_PATH: index.yaml
CR_PACKAGE_PATH: src/go/k8s/helm-chart/charts
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CR_PUSH: 1
CR_RELEASE_NAME_TEMPLATE: "{{ .Version }}"
with:
args: index