Skip to content

Commit

Permalink
add crds to helm chart
Browse files Browse the repository at this point in the history
Signed-off-by: adityajoshi12 <[email protected]>
  • Loading branch information
adityajoshi12 committed Nov 1, 2024
1 parent 6f184ae commit ec666ff
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release_charts.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: Release Chart

on:
workflow_dispatch:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
paths:
- 'chart/**'
- '.github/workflows/release_charts.yml'

jobs:
release:
Expand All @@ -25,10 +29,25 @@ jobs:
- name: Install additional Helm repos
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: "1.23.x"

- name: Generate CRDs
run: |
go install sigs.k8s.io/controller-tools/cmd/[email protected]
make generate manifests
cp config/crd/bases/* chart/hlf-operator/templates/crds/
- name: Extract Tag
id: extract_tag
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Operator charts
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
charts_dir: chart
version: ${{ env.TAG }}

0 comments on commit ec666ff

Please sign in to comment.