Skip to content

feat: changes

feat: changes #3

Workflow file for this run

name: Release Charts
on:
push:
branches:
- main
paths:
- kubernetes/chart/**
- .github/workflows/helm-cd.yml
workflow_dispatch:
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
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 "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v4
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Run chart-releaser
uses: helm/[email protected]
with:
charts_dir: kubernetes
env:
CR_SKIP_EXISTING: true
CR_GENERATE_RELEASE_NOTES: true
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_RELEASE_NAME_TEMPLATE: "{{ .Version }}-helm"
- name: Push to central helm-charts repo
uses: cpina/[email protected]
env:
API_TOKEN_GITHUB: ${{ secrets.HELM_CHARTS_REPO_TOKEN }}
with:
source-directory: "kubernetes/chart"
target-directory: "charts/velero-ui"
destination-github-username: ${{ github.repository_owner }}
destination-repository-name: "helm-charts"
user-email: "[email protected]"
target-branch: main