Skip to content

Commit

Permalink
Ops 6636 allow adding dependencies chart release (#26)
Browse files Browse the repository at this point in the history
Ops 6636 allow adding dependencies chart release (#26)
  • Loading branch information
MWesterholz authored Aug 12, 2024
1 parent 73dddb6 commit 8c400ca
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/chart-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ on:
type: string
description: "image tag (required if image_tag_generation: specified)"
required: false
helm_repo_list:
type: string
description: "List of helm repos to add, in format: repo_name1,repo_url1,repo_name2,repo_url2"
required: false
default: ""


jobs:
Expand Down Expand Up @@ -132,6 +137,17 @@ jobs:
echo "image_tag specification ommited, helm uses value from chart.yaml"
fi
echo "image_tag=$image_tag" >> $GITHUB_ENV
- name: Add Helm Repos (Optional)
if: ${{ inputs.helm_repo_list != '' }}
run: |
IFS=',' read -r -a repo_array <<< "${{ inputs.helm_repo_list }}"
for ((i=0; i<${#repo_array[@]}; i+=2)); do
name=${repo_array[i]}
url=${repo_array[i+1]}
echo adding helm reposiory $name from source $url
helm repo add $name $url
done
- name: Update Helm Chart Dependencies
run: helm dependency update ${{ inputs.chart_path }}/${{ inputs.chart_name }}
Expand Down

0 comments on commit 8c400ca

Please sign in to comment.