-
Notifications
You must be signed in to change notification settings - Fork 14
54 lines (46 loc) · 1.55 KB
/
helm_publish.yaml
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
49
50
51
52
53
54
name: Build and Publish Helm Chart
on:
workflow_dispatch:
push:
branches:
- main
release:
types:
- published
env:
CHART_NAME: fuel-streams
CHART_PATH: cluster/charts/fuel-streams
permissions:
contents: read
packages: write
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
helm-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Helm Dependencies Update
run: |
cd ${{ env.CHART_PATH }} && helm dependency update
- name: Get chart version
id: version
run: |
version=$(awk '/^version:/ {print $2}' ${{ env.CHART_PATH }}/Chart.yaml)
echo "version=$version" >> $GITHUB_OUTPUT
- name: "Build chart: [${{ env.CHART_NAME }} v${{ steps.version.outputs.version }}]"
uses: bsord/[email protected]
with:
useOCIRegistry: true
registry-url: oci://ghcr.io/fuellabs/helmcharts
username: ${{ github.repository_owner }}
access-token: ${{ secrets.GITHUB_TOKEN }}
force: true
chart-folder: ${{ env.CHART_PATH }}
- name: Build Summary
run: |-
echo "### Helm Charts Build Summary 📊" >> $GITHUB_STEP_SUMMARY
echo "| Chart | Version | Status |" >> $GITHUB_STEP_SUMMARY
echo "|-------|---------|--------|" >> $GITHUB_STEP_SUMMARY
echo "| ${{ env.CHART_NAME }} | ${{ steps.version.outputs.version }} | ✅ Published |" >> $GITHUB_STEP_SUMMARY