Skip to content

Commit f5f3c30

Browse files
authored
ci: push charts to oci
Fixes: wiremind#634
1 parent d154767 commit f5f3c30

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
jobs:
99
release:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
packages: write
1114
steps:
1215
- name: Checkout
1316
uses: actions/checkout@v4
@@ -26,3 +29,14 @@ jobs:
2629
uses: helm/[email protected]
2730
env:
2831
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
32+
33+
## https://github.com/helm/chart-releaser-action/issues/107#issuecomment-2133797963
34+
- name: Push Charts to GHCR
35+
run: |
36+
for pkg in .cr-release-packages/*; do
37+
if [ -z "${pkg:-}" ]; then
38+
break
39+
fi
40+
41+
helm push "${pkg}" oci://ghcr.io/${{ github.repository }}
42+
done

0 commit comments

Comments
 (0)