mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-11 11:57:04 +00:00
Bumps [azure/setup-helm](https://github.com/azure/setup-helm) from 3.5 to 4.
- [Release notes](https://github.com/azure/setup-helm/releases)
- [Changelog](https://github.com/Azure/setup-helm/blob/main/CHANGELOG.md)
- [Commits](5119fcb908...fe7b79cd5e)
---
updated-dependencies:
- dependency-name: azure/setup-helm
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
68 lines
2.3 KiB
YAML
68 lines
2.3 KiB
YAML
name: Publish Chart
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
workflow_dispatch: { }
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
publish-charts:
|
|
env:
|
|
HELM_CHARTS_DIR: charts
|
|
HELM_CHART: charts/vela-core
|
|
HELM_CHART_NAME: vela-core
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
|
|
- name: Get git revision
|
|
id: vars
|
|
shell: bash
|
|
run: |
|
|
echo "git_revision=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
|
- name: Install Helm
|
|
uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814
|
|
with:
|
|
version: v3.4.0
|
|
- name: Setup node
|
|
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b
|
|
with:
|
|
node-version: '14'
|
|
- name: Generate helm doc
|
|
run: |
|
|
make helm-doc-gen
|
|
- name: Get the version
|
|
id: get_version
|
|
run: |
|
|
VERSION=${GITHUB_REF#refs/tags/}
|
|
echo "VERSION=${VERSION}" >> $GITHUB_OUTPUT
|
|
- name: Tag helm chart image
|
|
run: |
|
|
image_tag=${{ steps.get_version.outputs.VERSION }}
|
|
chart_version=${{ steps.get_version.outputs.VERSION }}
|
|
sed -i "s/latest/${image_tag}/g" $HELM_CHART/values.yaml
|
|
chart_smever=${chart_version#"v"}
|
|
sed -i "s/0.1.0/$chart_smever/g" $HELM_CHART/Chart.yaml
|
|
|
|
- uses: jnwng/github-app-installation-token-action@v2
|
|
id: get_app_token
|
|
with:
|
|
appId: 340472
|
|
installationId: 38064967
|
|
privateKey: ${{ secrets.GH_KUBEVELA_APP_PRIVATE_KEY }}
|
|
- name: Sync Chart Repo
|
|
run: |
|
|
git config --global user.email "135009839+kubevela[bot]@users.noreply.github.com"
|
|
git config --global user.name "kubevela[bot]"
|
|
git clone https://x-access-token:${{ steps.get_app_token.outputs.token }}@github.com/kubevela/charts.git kubevela-charts
|
|
helm package $HELM_CHART --destination ./kubevela-charts/docs/
|
|
helm repo index --url https://kubevela.github.io/charts ./kubevela-charts/docs/
|
|
cd kubevela-charts/
|
|
git add docs/
|
|
chart_version=${{ steps.get_version.outputs.VERSION }}
|
|
git commit -m "update vela-core chart ${chart_version}"
|
|
git push https://x-access-token:${{ steps.get_app_token.outputs.token }}@github.com/kubevela/charts.git
|