diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8f20586..861c7c6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,11 +19,18 @@ jobs: run: | sed -i 's/0.0.0/${{ github.ref_name }}/' charts/common/Chart.yaml - - name: Helm Publish + - name: Publish on internal registry uses: huggingface/helm-publish-action@latest with: workingDirectory: charts/common tailscaleKey: ${{ secrets.TAILSCALE_AUTHKEY }} - repository: https://registry.internal.huggingface.tech/chartrepo/charts + repository: ${{ secrets.INTERNAL_REGISTRY_URL }}/chartrepo/charts username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_PASSWORD }} + + - name: Publish on public registry + shell: bash + run: | + helm package charts/common + helm registry login ghcr.io/huggingface/helm-common --username ${{ secrets.GH_USERNAME }} --password ${{ secrets.GH_PASSWORD }} + helm push common-${{ github.ref_name }}.tgz oci://ghcr.io/huggingface/helm-common diff --git a/README.md b/README.md index 0fc370b..1c66f48 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Hugging Face Common Helm Chart +[![Version](https://img.shields.io/github/v/release/huggingface/helm-common?label=Release)](https://github.com/huggingface/helm-publish-action/releases) [![License](https://img.shields.io/badge/License-Apache_2.0-yellow.svg)](https://opensource.org/licenses/Apache-2.0) ![Tests](https://github.com/huggingface/helm-common/actions/workflows/test.yml/badge.svg)