Skip to content

Commit

Permalink
feat(ci/scripts): only add _common.sh to main values.yaml
Browse files Browse the repository at this point in the history
The values.yaml is the base for all the other `ci/*-values.yaml`s,
therefore changing them as well is not needed
  • Loading branch information
cwrau committed Aug 22, 2023
1 parent f286c11 commit 638a9ef
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/scripts/prepare-values.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ function prepare-values() {
local valuesScript
if [[ -f "$chart/ci/_common.sh" ]]; then
commonValues="$("$chart/ci/_common.sh")"
for values in "$chart/values.yaml" "$chart/ci/"*-values.yaml; do
[[ -f "$values" ]] || continue
mergeYaml "$values" "$commonValues" | sponge "$values"
done
values="$chart/values.yaml"
mergeYaml "$values" "$commonValues" | sponge "$values"
fi
for valuesScript in "$chart/ci/"*-values.sh; do
[[ -f "$valuesScript" ]] || continue
Expand Down

0 comments on commit 638a9ef

Please sign in to comment.