mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix docker img tag displayed on stable releases
This commit is contained in:
parent
95328d5447
commit
df7efa17f8
1 changed files with 16 additions and 5 deletions
21
.github/workflows/ghcr_deploy.yml
vendored
21
.github/workflows/ghcr_deploy.yml
vendored
|
@ -80,7 +80,6 @@ jobs:
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
#
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -112,7 +111,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
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 }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
platforms: local,linux/amd64,linux/arm64,linux/arm64/v8
|
platforms: local,linux/amd64,linux/arm64,linux/arm64/v8
|
||||||
|
|
||||||
|
@ -151,8 +154,12 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
file: ./docker/Dockerfile.database
|
file: ./docker/Dockerfile.database
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta-database.outputs.tags }}-${{ github.event.inputs.tag || 'latest' }}, ${{ steps.meta-database.outputs.tags }}-${{ github.event.inputs.release_type }}
|
tags: |
|
||||||
labels: ${{ steps.meta-database.outputs.labels }}
|
${{ 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
|
platforms: local,linux/amd64,linux/arm64,linux/arm64/v8
|
||||||
|
|
||||||
build-and-push-image-non_root:
|
build-and-push-image-non_root:
|
||||||
|
@ -190,7 +197,11 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
file: ./docker/Dockerfile.non_root
|
file: ./docker/Dockerfile.non_root
|
||||||
push: true
|
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 }}
|
labels: ${{ steps.meta-non_root.outputs.labels }}
|
||||||
platforms: local,linux/amd64,linux/arm64,linux/arm64/v8
|
platforms: local,linux/amd64,linux/arm64,linux/arm64/v8
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue