-
Notifications
You must be signed in to change notification settings - Fork 14
70 lines (62 loc) · 2.08 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Build and Publish Helm Chart
on:
workflow_dispatch:
inputs:
chart:
description: "Choose which chart to build"
required: true
type: choice
options:
- fuel-streams-publisher
- fuel-streams
- all
default: "all"
push:
branches:
- main
release:
types:
- published
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
strategy:
matrix:
chart:
- name: fuel-streams-publisher
path: cluster/charts/fuel-streams-publisher
- name: fuel-streams
path: cluster/charts/fuel-streams
steps:
- uses: actions/checkout@v4
- name: Helm Dependencies Update
run: |
cd ${{ matrix.chart.path }} && helm dependency update
- name: Get chart version
id: version
run: |
version=$(awk '/^version:/ {print $2}' ${{ matrix.chart.path }}/Chart.yaml)
echo "version=$version" >> $GITHUB_OUTPUT
- name: "Build chart: [${{ matrix.chart.name }} v${{ steps.version.outputs.version }}]"
if: github.event_name != 'workflow_dispatch' || github.event.inputs.chart == 'all' || github.event.inputs.chart
== matrix.chart.name
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: ${{ matrix.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 "| ${{ matrix.chart.name }} | ${{ steps.version.outputs.version }} | ✅ Published |" >> $GITHUB_STEP_SUMMARY