Skip to content

Commit

Permalink
echo vars
Browse files Browse the repository at this point in the history
  • Loading branch information
tengomucho committed Jun 24, 2024
1 parent c96c132 commit c13d082
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/tpu-tgi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
push:
branches: tgi-docker-workflow


jobs:
docker:
name: Push TGI Docker container to Docker Hub and Github Registry
Expand Down Expand Up @@ -43,6 +44,12 @@ jobs:
prefix=
suffix=-tgi
- name: Get the version
id: version
run: |
VERSION=$(awk '/__version__ = "(.*)"/{print $3}' optimum/tpu/version.py | sed 's/"//g')
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v6
Expand All @@ -53,7 +60,7 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VERSION=${{ github.event.release.tag_name }}
VERSION=${{ steps.version.outputs.version }}
TGI_VERSION=5bc3d65dd32ba1f979540caeccbf3dd8798dd9df
target: inference-endpoint

Expand Down

0 comments on commit c13d082

Please sign in to comment.