Skip to content

Commit 57d8e26

Browse files
authored
feat: add OCI support for pushing charts to GHCR (#182)
1 parent d7aab73 commit 57d8e26

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,29 @@ jobs:
1919
git config user.name "$GITHUB_ACTOR"
2020
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
2121
22+
- name: Install Helm
23+
uses: jdx/mise-action@v3
24+
with:
25+
tool_versions: |
26+
helm: latest
27+
2228
- name: Run chart-releaser
2329
uses: helm/chart-releaser-action@v1.7.0
2430
env:
2531
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2632
CR_SKIP_EXISTING: true
33+
34+
- name: Login to GHCR
35+
uses: docker/login-action@v3
36+
with:
37+
registry: ghcr.io
38+
username: ${{ github.actor }}
39+
password: ${{ secrets.GITHUB_TOKEN }}
40+
41+
- name: Push charts to GHCR
42+
run: |
43+
for pkg in .cr-release-packages/*.tgz; do
44+
if [ -f "$pkg" ]; then
45+
helm push "$pkg" oci://ghcr.io/nutanix-cloud-native/chart
46+
fi
47+
done

0 commit comments

Comments
 (0)