chore(deps): bump mlx[cuda] from 0.30.0 to 0.30.1 in /cmd/runtimes/ml… #4
This file contains hidden or 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
| name: Publish Helm Charts | |
| on: | |
| push: | |
| branches: | |
| - master | |
| tags: | |
| - "v*" | |
| env: | |
| CHART_PATH: charts/kubeflow-trainer | |
| jobs: | |
| publish: | |
| permissions: | |
| contents: read | |
| packages: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Update appVersion in Chart.yaml | |
| run: | | |
| if [[ "${{ github.ref }}" == refs/tags/* ]]; then | |
| APP_VERSION="${GITHUB_REF#refs/tags/}" | |
| else | |
| APP_VERSION="sha-$(git rev-parse --short=7 HEAD)" | |
| fi | |
| echo "appVersion: ${APP_VERSION}" >> ${{ env.CHART_PATH }}/Chart.yaml | |
| echo "Updated Chart.yaml with appVersion: ${APP_VERSION}" | |
| - name: Build, package, and push Helm chart | |
| run: | | |
| if [[ "${{ github.ref }}" == refs/tags/* ]]; then | |
| VERSION=$(grep '^version:' ${{ env.CHART_PATH }}/Chart.yaml | awk '{print $2}') | |
| else | |
| VERSION="0.0.0-sha-$(git rev-parse --short=7 HEAD)" | |
| fi | |
| echo "Chart version set to: ${VERSION}" | |
| helm dependency build ${{ env.CHART_PATH }} | |
| helm package ${{ env.CHART_PATH }} --version ${VERSION} | |
| helm push kubeflow-trainer-${VERSION}.tgz oci://ghcr.io/kubeflow/charts |