forked from phoenix/litellm-mirror
Merge pull request #4649 from mikstew/mikio/helm-app-version
Fix app_version in helm build
This commit is contained in:
commit
e28e1c4cdb
1 changed files with 12 additions and 2 deletions
14
.github/workflows/ghcr_deploy.yml
vendored
14
.github/workflows/ghcr_deploy.yml
vendored
|
@ -194,6 +194,8 @@ jobs:
|
||||||
platforms: local,linux/amd64,linux/arm64,linux/arm64/v8
|
platforms: local,linux/amd64,linux/arm64,linux/arm64/v8
|
||||||
|
|
||||||
build-and-push-helm-chart:
|
build-and-push-helm-chart:
|
||||||
|
if: github.event.inputs.release_type != 'dev'
|
||||||
|
needs: [docker-hub-deploy, build-and-push-image, build-and-push-image-database]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
@ -211,9 +213,17 @@ jobs:
|
||||||
- name: lowercase github.repository_owner
|
- name: lowercase github.repository_owner
|
||||||
run: |
|
run: |
|
||||||
echo "REPO_OWNER=`echo ${{github.repository_owner}} | tr '[:upper:]' '[:lower:]'`" >>${GITHUB_ENV}
|
echo "REPO_OWNER=`echo ${{github.repository_owner}} | tr '[:upper:]' '[:lower:]'`" >>${GITHUB_ENV}
|
||||||
|
|
||||||
- name: Get LiteLLM Latest Tag
|
- name: Get LiteLLM Latest Tag
|
||||||
id: current_app_tag
|
id: current_app_tag
|
||||||
uses: WyriHaximus/github-action-get-previous-tag@v1.3.0
|
shell: bash
|
||||||
|
run: |
|
||||||
|
LATEST_TAG=$(git describe --tags --exclude "*dev*" --abbrev=0)
|
||||||
|
if [ -z "${LATEST_TAG}" ]; then
|
||||||
|
echo "latest_tag=latest" | tee -a $GITHUB_OUTPUT
|
||||||
|
else
|
||||||
|
echo "latest_tag=${LATEST_TAG}" | tee -a $GITHUB_OUTPUT
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Get last published chart version
|
- name: Get last published chart version
|
||||||
id: current_version
|
id: current_version
|
||||||
|
@ -241,7 +251,7 @@ jobs:
|
||||||
name: ${{ env.CHART_NAME }}
|
name: ${{ env.CHART_NAME }}
|
||||||
repository: ${{ env.REPO_OWNER }}
|
repository: ${{ env.REPO_OWNER }}
|
||||||
tag: ${{ github.event.inputs.chartVersion || steps.bump_version.outputs.next-version || '0.1.0' }}
|
tag: ${{ github.event.inputs.chartVersion || steps.bump_version.outputs.next-version || '0.1.0' }}
|
||||||
app_version: ${{ steps.current_app_tag.outputs.tag || 'latest' }}
|
app_version: ${{ steps.current_app_tag.outputs.latest_tag }}
|
||||||
path: deploy/charts/${{ env.CHART_NAME }}
|
path: deploy/charts/${{ env.CHART_NAME }}
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
registry_username: ${{ github.actor }}
|
registry_username: ${{ github.actor }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue