diff --git a/.github/workflows/ghcr_deploy.yml b/.github/workflows/ghcr_deploy.yml index 2cc082c7c..5d2efd329 100644 --- a/.github/workflows/ghcr_deploy.yml +++ b/.github/workflows/ghcr_deploy.yml @@ -5,10 +5,10 @@ on: inputs: tag: description: "The tag version you want to build" - stable: - description: "Build Stable version" - type: boolean - default: false + release_type: + description: "The release type you want to build. Can be 'latest', 'stable', 'dev'" + type: string + default: "latest" commit_hash: description: "Commit hash" required: true @@ -21,23 +21,6 @@ env: # There is a single job in this workflow. It's configured to run on the latest available version of Ubuntu. jobs: - determine-release-type: - runs-on: ubuntu-latest - steps: - - name: Set release type - id: set-release-type - run: | - if [ "${{ github.event.inputs.stable }}" == "true" ]; then - echo "stable release" - echo "type_release=stable" >> $GITHUB_ENV - else - echo "latest release" - echo "type_release=latest" >> $GITHUB_ENV - fi - echo "type_release value: $type_release" - env: - ACTIONS_ALLOW_ENV_MARK: true - docker-hub-deploy: if: github.repository == 'BerriAI/litellm' runs-on: ubuntu-latest @@ -111,7 +94,7 @@ jobs: with: context: https://github.com/BerriAI/litellm.git#${{ github.event.inputs.commit_hash}} push: true - 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' + 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' labels: ${{ steps.meta.outputs.labels }} platforms: local,linux/amd64,linux/arm64,linux/arm64/v8 @@ -148,7 +131,7 @@ jobs: context: https://github.com/BerriAI/litellm.git#${{ github.event.inputs.commit_hash}} file: Dockerfile.database push: true - tags: ${{ steps.meta-database.outputs.tags }}-${{ github.event.inputs.tag || 'latest' }}, ${{ steps.meta-database.outputs.tags }}-${{ env.type_release }} + 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 }} platforms: local,linux/amd64,linux/arm64,linux/arm64/v8 @@ -185,7 +168,7 @@ jobs: context: https://github.com/BerriAI/litellm.git#${{ github.event.inputs.commit_hash}} file: ./litellm-js/spend-logs/Dockerfile push: true - tags: ${{ steps.meta-spend-logs.outputs.tags }}-${{ github.event.inputs.tag || 'latest' }}, ${{ steps.meta-spend-logs.outputs.tags }}-${{ env.type_release }} + tags: ${{ steps.meta-spend-logs.outputs.tags }}-${{ github.event.inputs.tag || 'latest' }}, ${{ steps.meta-spend-logs.outputs.tags }}-${{ github.event.inputs.release_type }} platforms: local,linux/amd64,linux/arm64,linux/arm64/v8 build-and-push-helm-chart: