Skip to content

Commit

Permalink
feat: push to public registry (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrompier authored Mar 6, 2023
1 parent 96a9ab0 commit 2c5dad8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down

0 comments on commit 2c5dad8

Please sign in to comment.