forked from phoenix/litellm-mirror
set release type
This commit is contained in:
parent
0dd7ab44ed
commit
280a3d580b
1 changed files with 12 additions and 12 deletions
24
.github/workflows/ghcr_deploy.yml
vendored
24
.github/workflows/ghcr_deploy.yml
vendored
|
@ -18,6 +18,18 @@ env:
|
||||||
|
|
||||||
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
|
# There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu.
|
||||||
jobs:
|
jobs:
|
||||||
|
determine-release-type:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
type_release: ${{ steps.set-release-type.outputs.type_release }}
|
||||||
|
steps:
|
||||||
|
- name: Set release type
|
||||||
|
id: set-release-type
|
||||||
|
run: |
|
||||||
|
if [ "${{ github.event.inputs.stable }}" == "true" ]; then
|
||||||
|
echo "type_release=stable" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "type_release=latest" >> $GITHUB_ENV
|
||||||
docker-hub-deploy:
|
docker-hub-deploy:
|
||||||
if: github.repository == 'BerriAI/litellm'
|
if: github.repository == 'BerriAI/litellm'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -63,12 +75,6 @@ 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.
|
||||||
|
@ -144,12 +150,6 @@ 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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue