Skip to content

Commit 7ef9209

Browse files
committed
feat(helm): publish OCI helm charts
Signed-off-by: Ludovic Ortega <[email protected]>
1 parent dcc9e6d commit 7ef9209

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,22 @@ jobs:
2323
uses: helm/[email protected]
2424
env:
2525
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
26+
27+
- name: Login to GitHub Container Registry
28+
uses: docker/login-action@v3
29+
with:
30+
registry: ghcr.io
31+
username: ${{ github.actor }}
32+
password: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- name: Push charts to GHCR
35+
run: |
36+
shopt -s nullglob
37+
for pkg in .cr-release-packages/*; do
38+
if [ -z "${pkg:-}" ]; then
39+
break
40+
fi
41+
lowercase=$(echo "${GITHUB_REPOSITORY}" | tr '[:upper:]' '[:lower:]')
42+
echo "Pushing package - ${pkg} to ghcr.io repository - ${lowercase}"
43+
helm push "${pkg}" "oci://ghcr.io/${lowercase}"
44+
done

0 commit comments

Comments
 (0)