Skip to content

Commit

Permalink
Merge pull request #2 from eduNEXT/Jhony/fix_helm_release
Browse files Browse the repository at this point in the history
fix: bypassing OCI registries when releasing the Harmony chart
  • Loading branch information
jfavellar90 committed Dec 19, 2023
2 parents 87229e5 + 9b4d97f commit eb7106d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,16 @@ jobs:
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v3
uses: azure/[email protected]
with:
version: v3.12.3

- name: Add dependency repositories
# The OCI registries are bypassed since helm repo subcommands are not supported.
# More details in https://helm.sh/docs/topics/registries/
- name: Add dependency repositories (bypassing OCI repositories)
run: |
for dir in $(ls -d charts/*/); do
helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done
helm dependency list $dir 2> /dev/null | tail +2 | head -n -1 | sed '/oci:\/\//d' | awk '{ print "helm repo add " $1 " " $3 }' | while read cmd; do $cmd; done
done
- name: Run chart-releaser
Expand Down

0 comments on commit eb7106d

Please sign in to comment.