Skip to content

Commit 32c0b16

Browse files
committed
feat(helm): publish OCI helm charts
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
1 parent 8ae996c commit 32c0b16

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
@@ -28,3 +28,22 @@ jobs:
2828
uses: helm/chart-releaser-action@v1.2.0
2929
env:
3030
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
31+
32+
- name: Login to GitHub Container Registry
33+
uses: docker/login-action@v3
34+
with:
35+
registry: ghcr.io
36+
username: ${{ github.actor }}
37+
password: ${{ secrets.GITHUB_TOKEN }}
38+
39+
- name: Push charts to GHCR
40+
run: |
41+
shopt -s nullglob
42+
for pkg in .cr-release-packages/*; do
43+
if [ -z "${pkg:-}" ]; then
44+
break
45+
fi
46+
lowercase=$(echo "${GITHUB_REPOSITORY}" | tr '[:upper:]' '[:lower:]')
47+
echo "Pushing package - ${pkg} to ghcr.io repository - ${lowercase}"
48+
helm push "${pkg}" "oci://ghcr.io/${lowercase}"
49+
done

0 commit comments

Comments
 (0)