Skip to content

Commit

Permalink
fix: bypassing OCI registries when creating a release for the Harmony…
Browse files Browse the repository at this point in the history
… chart
  • Loading branch information
jfavellar90 committed Dec 19, 2023
1 parent 87229e5 commit 9b4d97f
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 9b4d97f

Please sign in to comment.