Skip to content

Commit

Permalink
ci: fix ml add helm workflow (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
hughcrt committed Aug 4, 2024
1 parent e815f8b commit 22171fa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/update-helm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,17 @@ jobs:
update-and-publish:
runs-on: ubuntu-latest
steps:
- name: Check out the lunary repo
uses: actions/checkout@v4
with:
path: lunary

- name: Check out the helm repo
uses: actions/checkout@v4
with:
repository: lunary-ai/helm
token: ${{ secrets.GH_TOKEN }}
path: helm

- name: Set up Helm
uses: azure/setup-helm@v3
Expand All @@ -28,14 +34,17 @@ jobs:
run: echo "tag=$(echo ${{ github.event.release.tag_name }} | sed 's/^v//')" >> $GITHUB_OUTPUT

- name: Update Helm chart
working-directory: helm
run: |
bash update ${{ steps.release_tag.outputs.tag }}
- name: Publish Helm chart
working-directory: helm
run: |
bash publish
- name: Commit and push changes
working-directory: helm
run: |
git config --local user.email "chocart.hugues@icloud.com"
git config --local user.name "hughcrt"
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/update-ml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
- name: Check out the private ml repo
uses: actions/checkout@v4
with:
repository: lunary-ai/ml
token: ${{ secrets.GH_TOKEN }}
path: ml

- name: Log in to Docker Hub
uses: docker/login-action@v3
Expand All @@ -34,6 +34,7 @@ jobs:
- name: Build and push ml
uses: docker/build-push-action@v5
with:
context: ml
push: true
tags: |
lunary/ml:latest
Expand Down

0 comments on commit 22171fa

Please sign in to comment.