-
Notifications
You must be signed in to change notification settings - Fork 35
48 lines (46 loc) · 1.34 KB
/
helm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Release helm chart
on:
workflow_call:
inputs:
ref:
description: 'ref to build eg v0.8.0'
required: false
type: string
version:
description: 'push helm chart with this version, eg v0.8.0'
type: string
workflow_dispatch:
inputs:
ref:
description: 'ref to build eg v0.8.0'
required: false
type: string
version:
description: 'push helm chart with this version, eg v0.8.0'
type: string
jobs:
release-helm-chart:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- name: Write release version
id: version
run: |
VERSION=${{ inputs.version }}
echo Version: ${VERSION#v}
echo "VERSION=${VERSION#v}" >> "$GITHUB_OUTPUT"
- name: Check helm versions
run: |
grep -qF 'version: "${{ steps.version.outputs.VERSION }}"' charts/restate-helm/Chart.yaml
- name: Push helm chart
uses: appany/[email protected]
with:
name: restate-helm
repository: restatedev
tag: ${{ steps.version.outputs.VERSION }}
registry: ghcr.io
registry_username: ${{ github.actor }}
registry_password: ${{ secrets.GITHUB_TOKEN }}