Skip to content

Commit 2c5dad8

Browse files
authored
feat: push to public registry (#2)
1 parent 96a9ab0 commit 2c5dad8

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,18 @@ jobs:
1919
run: |
2020
sed -i 's/0.0.0/${{ github.ref_name }}/' charts/common/Chart.yaml
2121
22-
- name: Helm Publish
22+
- name: Publish on internal registry
2323
uses: huggingface/helm-publish-action@latest
2424
with:
2525
workingDirectory: charts/common
2626
tailscaleKey: ${{ secrets.TAILSCALE_AUTHKEY }}
27-
repository: https://registry.internal.huggingface.tech/chartrepo/charts
27+
repository: ${{ secrets.INTERNAL_REGISTRY_URL }}/chartrepo/charts
2828
username: ${{ secrets.REGISTRY_USERNAME }}
2929
password: ${{ secrets.REGISTRY_PASSWORD }}
30+
31+
- name: Publish on public registry
32+
shell: bash
33+
run: |
34+
helm package charts/common
35+
helm registry login ghcr.io/huggingface/helm-common --username ${{ secrets.GH_USERNAME }} --password ${{ secrets.GH_PASSWORD }}
36+
helm push common-${{ github.ref_name }}.tgz oci://ghcr.io/huggingface/helm-common

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Hugging Face Common Helm Chart
22

3+
[![Version](https://img.shields.io/github/v/release/huggingface/helm-common?label=Release)](https://github.com/huggingface/helm-publish-action/releases)
34
[![License](https://img.shields.io/badge/License-Apache_2.0-yellow.svg)](https://opensource.org/licenses/Apache-2.0)
45
![Tests](https://github.com/huggingface/helm-common/actions/workflows/test.yml/badge.svg)
56

0 commit comments

Comments
 (0)