v23.2.7 #117
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 "$GITHUB_ACTOR@users.noreply.github.com" | |
- 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/upload-release-action@2.3.0 | |
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 |