43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
name: Release Charts
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
release:
|
|
permissions:
|
|
contents: write
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
- name: Configure the Git and CR binaries
|
|
run: |
|
|
git config user.name "$GITHUB_ACTOR"
|
|
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
|
echo "Download custom cr patched binary to support immutable release"
|
|
mkdir ./cr-patched
|
|
curl -SfL https://ci.opensearch.org/ci/dbc/tools/cr-587-immutable -o ./cr-patched/cr
|
|
chmod 755 ./cr-patched/cr
|
|
|
|
- name: Install Helm
|
|
uses: azure/setup-helm@18bc76811624f360dbd7f18c2d4ecb32c7b87bab # v1.1 # TODO: update version
|
|
with:
|
|
version: v3.7.0
|
|
|
|
# See https://github.com/helm/chart-releaser
|
|
# See https://github.com/helm/chart-releaser-action
|
|
- name: Run chart-releaser
|
|
uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 # v1.6.0
|
|
with:
|
|
install_dir: ./cr-patched
|
|
env:
|
|
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|