Cleaned up code #740
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |