Skip to content

Feat adding template config #1

Feat adding template config

Feat adding template config #1

Workflow file for this run

name: PR - release charts
on:
pull_request:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: v3.12.1
- name: Add dependency chart repos
run: |
helm repo add stable https://charts.helm.sh/stable
helm repo add incubator https://charts.helm.sh/incubator
- name: Get version
id: get_version
run: |
version=$(grep 'version: ' charts/node-local-dns/Chart.yaml | awk '{print $2}')
branch=$(echo $GITHUB_REF | sed 's/refs\/heads\///')
rc_version="${version}-${branch}"
echo ::set-output name=version::$rc_version
- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_VERSION: ${{ steps.get_version.outputs.version }}