forked from phoenix/litellm-mirror
set release type on releases
This commit is contained in:
parent
7f50b80917
commit
0dd7ab44ed
1 changed files with 14 additions and 3 deletions
17
.github/workflows/ghcr_deploy.yml
vendored
17
.github/workflows/ghcr_deploy.yml
vendored
|
@ -63,6 +63,12 @@ jobs:
|
||||||
packages: write
|
packages: write
|
||||||
#
|
#
|
||||||
steps:
|
steps:
|
||||||
|
- name: Set release type
|
||||||
|
run: |
|
||||||
|
if ${{ github.event.inputs.stable == 'true' }}; then
|
||||||
|
echo "type_release=stable" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "type_release=latest" >> $GITHUB_ENV
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
|
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
|
||||||
|
@ -91,7 +97,7 @@ 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.stable && 'stable' || 'latest' }} # 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 }}-${{ env.type_release }} # if a tag is provided, use that, otherwise use the release tag, and if neither is available, use 'latest'
|
||||||
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
|
||||||
|
|
||||||
|
@ -138,6 +144,12 @@ jobs:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
steps:
|
steps:
|
||||||
|
- name: Set release type
|
||||||
|
run: |
|
||||||
|
if ${{ github.event.inputs.stable == 'true' }}; then
|
||||||
|
echo "type_release=stable" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "type_release=latest" >> $GITHUB_ENV
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
@ -165,8 +177,7 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
file: ./litellm-js/spend-logs/Dockerfile
|
file: ./litellm-js/spend-logs/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ steps.meta-spend-logs.outputs.tags }}-${{ github.event.inputs.tag || 'latest' }}, ${{ steps.meta-spend-logs.outputs.tags }}-${{ github.event.inputs.stable && 'stable' || 'latest' }}
|
tags: ${{ steps.meta-spend-logs.outputs.tags }}-${{ github.event.inputs.tag || 'latest' }}, ${{ steps.meta-spend-logs.outputs.tags }}-${{ env.type_release }}
|
||||||
labels: ${{ steps.meta-spend-logs.outputs.labels }}
|
|
||||||
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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue