Skip to content

Commit

Permalink
feat(helm): add release action
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrevilain committed Dec 29, 2023
1 parent 145c899 commit d588086
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/release-chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release Charts

on:
push:
branches:
- main
- feat/helm-release-action
paths:
- 'charts/**'

env:
GO_VERSION: "1.21.5"

jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
check-latest: true

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Generate operator chart
run: make helm

- name: Install Helm
uses: azure/setup-helm@v3

- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_SKIP_EXISTING: true
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_RELEASE_NAME_TEMPLATE: "helm-chart-{{ .Version }}"
CR_MAKE_RELEASE_LATEST: false
with:
charts_dir: charts
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ artifacts: kustomize
$(KUSTOMIZE) build config/default > ${RELEASE_PATH}/temporal-operator.yaml

.PHONY: helm
helm: manifests
helm: manifests artifacts
cp ${RELEASE_PATH}/temporal-operator.crds.yaml charts/temporal-operator/crds

.PHONY: bundle
Expand Down
16 changes: 16 additions & 0 deletions charts/temporal-operator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Temporal Operator Helm Chart

This Helm chart deploys the Temporal Operator to manage a Temporal Cluster in a Kubernetes cluster.

## Prerequisites

- Kubernetes 1.22+
- Helm 3+

## Installation

To install the Temporal Operator, use the following Helm command:
```bash
helm repo add
```

0 comments on commit d588086

Please sign in to comment.