mirror of
https://github.com/rancher/k3k.git
synced 2026-05-07 01:46:43 +00:00
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: Chart
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
env:
|
|
HELM_VERSION: v4.1.3
|
|
HELM_CHECKSUM_AMD64: 02ce9722d541238f81459938b84cf47df2fdf1187493b4bfb2346754d82a4700
|
|
|
|
jobs:
|
|
chart-release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
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: Install helm
|
|
env:
|
|
FILENAME: helm.tar.gz
|
|
run: |
|
|
curl -sSfL -o ${{ env.FILENAME }} https://get.helm.sh/helm-${{ env.HELM_VERSION }}-linux-amd64.tar.gz
|
|
echo "${{ env.HELM_CHECKSUM_AMD64 }} ${{ env.FILENAME }}" | sha256sum --check
|
|
tar -xvzf ${{ env.FILENAME }} linux-amd64/helm
|
|
sudo install -m 755 linux-amd64/helm /usr/local/bin/helm
|
|
|
|
rm -fr "${{ env.FILENAME }}" linux-amd64
|
|
|
|
- name: Run chart-releaser
|
|
uses: helm/chart-releaser-action@cae68fefc6b5f367a0275617c9f83181ba54714f # v1.7.0
|
|
with:
|
|
config: .cr.yaml
|
|
env:
|
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|