Skip to content

Commit

Permalink
fix helm release
Browse files Browse the repository at this point in the history
  • Loading branch information
code-crusher committed Jan 13, 2025
1 parent 38eb7a6 commit 5797c2d
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ jobs:
- name: Push chart to GHCR
run: |
REPO_LOWER=$(echo "$GITHUB_REPOSITORY_OWNER" | tr '[:upper:]' '[:lower:]')
for pkg in *.tgz; do
helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts"
helm push "${pkg}" "oci://ghcr.io/${REPO_LOWER}/charts"
done
# see https://github.com/helm/chart-releaser/issues/183
Expand All @@ -111,14 +112,4 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push charts to GHCR
run: |
shopt -s nullglob
for pkg in .cr-release-packages/*; do
if [ -z "${pkg:-}" ]; then
break
fi
helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts"
done
password: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5797c2d

Please sign in to comment.