-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix ml and add helm auto publish (#471)
- Loading branch information
Showing
2 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Update and Publish Helm Chart | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
update-and-publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the helm repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: lunary-ai/helm | ||
token: ${{ secrets.GH_TOKEN }} | ||
|
||
- name: Set up Helm | ||
uses: azure/setup-helm@v3 | ||
with: | ||
version: "latest" | ||
|
||
- name: Login to Helm registry | ||
run: | | ||
helm registry login registry-1.docker.io -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }} | ||
- name: Remove 'v' prefix from release tag | ||
id: release_tag | ||
run: echo "tag=$(echo ${{ github.event.release.tag_name }} | sed 's/^v//')" >> $GITHUB_OUTPUT | ||
|
||
- name: Update Helm chart | ||
run: | | ||
bash update ${{ steps.release_tag.outputs.tag }} | ||
- name: Publish Helm chart | ||
run: | | ||
bash publish | ||
- name: Commit and push changes | ||
run: | | ||
git config --local user.email "chocart.hugues@icloud.com" | ||
git config --local user.name "hughcrt" | ||
git add . | ||
git commit -m "chore: update Helm chart to version ${{ steps.release_tag.outputs.tag }}" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters