Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

fix docker img tag displayed on stable releases

Ishaan Jaffdf7efa17f8e1
diff --git a/.github/workflows/ghcr_deploy.yml b/.github/workflows/ghcr_deploy.yml
index 587abc8ea74..96269ad64be 100644
--- a/.github/workflows/ghcr_deploy.yml
+++ b/.github/workflows/ghcr_deploy.yml
@@ -80,7 +80,6 @@ jobs:
permissions:
contents: read
packages: write
- #
steps:
- name: Checkout repository
uses: actions/checkout@v4
@@ -112,7 +111,11 @@ jobs:
with:
context: .
push: true
- tags: ${{ steps.meta.outputs.tags }}-${{ github.event.inputs.tag || 'latest' }}, ${{ steps.meta.outputs.tags }}-${{ github.event.inputs.release_type }} # if a tag is provided, use that, otherwise use the release tag, and if neither is available, use 'latest'
+ tags: |
+ ${{ steps.meta.outputs.tags }}-${{ github.event.inputs.tag || 'latest' }},
+ ${{ steps.meta.outputs.tags }}-${{ github.event.inputs.release_type }}
+ ${{ github.event.inputs.release_type == 'stable' && 'litellm:main-stable' || '' }},
+ ${{ github.event.inputs.release_type == 'stable' && 'litellm:main-' + github.event.inputs.tag || '' }}
labels: ${{ steps.meta.outputs.labels }}
platforms: local,linux/amd64,linux/arm64,linux/arm64/v8
@@ -151,8 +154,12 @@ jobs:
context: .
file: ./docker/Dockerfile.database
push: true
- tags: ${{ steps.meta-database.outputs.tags }}-${{ github.event.inputs.tag || 'latest' }}, ${{ steps.meta-database.outputs.tags }}-${{ github.event.inputs.release_type }}
- labels: ${{ steps.meta-database.outputs.labels }}
+ tags: |
+ ${{ steps.meta-database.outputs.tags }}-${{ github.event.inputs.tag || 'latest' }},
+ ${{ steps.meta-database.outputs.tags }}-${{ github.event.inputs.release_type }}
+ ${{ github.event.inputs.release_type == 'stable' && 'litellm-database:main-stable' || '' }},
+ ${{ github.event.inputs.release_type == 'stable' && 'litellm-database:main-' + github.event.inputs.tag || '' }}
+ labels: ${{ steps.meta-database.outputs.labels }}
platforms: local,linux/amd64,linux/arm64,linux/arm64/v8
build-and-push-image-non_root:
@@ -190,7 +197,11 @@ jobs:
context: .
file: ./docker/Dockerfile.non_root
push: true
- tags: ${{ steps.meta-non_root.outputs.tags }}-${{ github.event.inputs.tag || 'latest' }}, ${{ steps.meta-non_root.outputs.tags }}-${{ github.event.inputs.release_type }}
+ tags: |
+ ${{ steps.meta-non_root.outputs.tags }}-${{ github.event.inputs.tag || 'latest' }},
+ ${{ steps.meta-non_root.outputs.tags }}-${{ github.event.inputs.release_type }}
+ ${{ github.event.inputs.release_type == 'stable' && 'litellm-non_root:main-stable' || '' }},
+ ${{ github.event.inputs.release_type == 'stable' && 'litellm-non_root:main-' + github.event.inputs.tag || '' }}
labels: ${{ steps.meta-non_root.outputs.labels }}
platforms: local,linux/amd64,linux/arm64,linux/arm64/v8