-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (46 loc) · 1.19 KB
/
chart_build.yml
File metadata and controls
57 lines (46 loc) · 1.19 KB
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
---
name: Chart Build
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'config/**'
- 'hack/**'
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
CHART_TARGET: ./chart_build
jobs:
chart:
runs-on: ubuntu-latest
name: Generate and Lint Helm Chart
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Cache tools
uses: actions/cache@v4
with:
path: ./bin
key: ${{ runner.os }}-bin-${{ hashFiles('Makefile') }}
- name: Install yq
uses: redhat-actions/openshift-tools-installer@v1
with:
source: github
yq: latest
- name: Create chart target
run: rm -rf ${{ env.CHART_TARGET }} && mkdir -p ${{ env.CHART_TARGET }}
- name: Generate chart
run: make generate/chart CHART_VERSION=0.0.0 CHART_TARGET=${{ env.CHART_TARGET }}
- name: Lint chart
run: make lint/chart CHART_TARGET=${{ env.CHART_TARGET }}
- name: Delete chart
if: always()
run: rm -rf ${{ env.CHART_TARGET }}