-
Notifications
You must be signed in to change notification settings - Fork 75
45 lines (38 loc) · 1.01 KB
/
helm-build.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
name: Helm Build
on:
push:
branches:
- v1.x
- v2.x
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 21
- name: Set up Helm
env:
HELM_VERSION: "v3.16.1"
run: |
wget https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz -O /tmp/helm.tar.gz
tar xzf /tmp/helm.tar.gz -C /tmp --strip-components=1
chmod +x /tmp/helm
- name: Build and upload Helm
env:
HELM_SSH_KEY: ${{ secrets.HELM_SSH_KEY }}
HELM_SSH_KEY_SNAPSHOT: ${{ secrets.HELM_SSH_KEY_SNAPSHOT }}
DEFAULT_BRANCH: "refs/heads/v2.x"
run: |
source ./helm/build.sh
source ./helm/upload.sh