mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-27 21:12:07 +00:00
?
This commit is contained in:
parent
19f6327bd2
commit
87df3d5603
32
.github/workflows/build.yaml
vendored
32
.github/workflows/build.yaml
vendored
@ -114,24 +114,24 @@ jobs:
|
|||||||
type=semver,pattern={{major}}.{{minor}}${{ env.LABEL }}
|
type=semver,pattern={{major}}.{{minor}}${{ env.LABEL }}
|
||||||
type=raw,value=latest${{ env.LABEL }},enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
|
type=raw,value=latest${{ env.LABEL }},enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
|
||||||
type=raw,value=sha-${{ env.GITHUB_SHA_SHORT }}${{ env.LABEL }}
|
type=raw,value=sha-${{ env.GITHUB_SHA_SHORT }}${{ env.LABEL }}
|
||||||
- name: Build and push Docker image
|
# - name: Build and push Docker image
|
||||||
id: build-and-push
|
# id: build-and-push
|
||||||
uses: docker/build-push-action@v4
|
# uses: docker/build-push-action@v4
|
||||||
with:
|
# with:
|
||||||
context: .
|
# context: .
|
||||||
file: ${{ env.DOCKERFILE }}
|
# file: ${{ env.DOCKERFILE }}
|
||||||
push: true
|
# push: true
|
||||||
platforms: 'linux/amd64'
|
# platforms: 'linux/amd64'
|
||||||
build-args: |
|
# build-args: |
|
||||||
GIT_SHA=${{ env.GITHUB_SHA }}
|
# GIT_SHA=${{ env.GITHUB_SHA }}
|
||||||
DOCKER_LABEL=sha-${{ env.GITHUB_SHA_SHORT }}${{ env.LABEL }}
|
# DOCKER_LABEL=sha-${{ env.GITHUB_SHA_SHORT }}${{ env.LABEL }}
|
||||||
tags: ${{ steps.meta.outputs.tags || steps.meta-pr.outputs.tags }}
|
# tags: ${{ steps.meta.outputs.tags || steps.meta-pr.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels || steps.meta-pr.outputs.labels }}
|
# labels: ${{ steps.meta.outputs.labels || steps.meta-pr.outputs.labels }}
|
||||||
cache-from: type=registry,ref=registry.internal.huggingface.tech/api-inference/community/text-generation-inference:cache${{ env.LABEL }},mode=min
|
# cache-from: type=registry,ref=registry.internal.huggingface.tech/api-inference/community/text-generation-inference:cache${{ env.LABEL }},mode=min
|
||||||
cache-to: type=registry,ref=registry.internal.huggingface.tech/api-inference/community/text-generation-inference:cache${{ env.LABEL }},mode=min
|
# cache-to: type=registry,ref=registry.internal.huggingface.tech/api-inference/community/text-generation-inference:cache${{ env.LABEL }},mode=min
|
||||||
- name: Final
|
- name: Final
|
||||||
id: final
|
id: final
|
||||||
run: |
|
run: |
|
||||||
echo "docker_image=registry,ref=registry.internal.huggingface.tech/api-inference/community/text-generation-inference:sha-${{ env.GITHUB_SHA_SHORT}}${{ env.LABEL }}" >> "$GITHUB_OUTPUT"
|
echo "docker_image=registry.internal.huggingface.tech/api-inference/community/text-generation-inference:sha-${{ env.GITHUB_SHA_SHORT}}${{ env.LABEL }}" >> "$GITHUB_OUTPUT"
|
||||||
echo "docker_devices=${{ env.DOCKER_DEVICES }}" >> "$GITHUB_OUTPUT"
|
echo "docker_devices=${{ env.DOCKER_DEVICES }}" >> "$GITHUB_OUTPUT"
|
||||||
echo "runs_on=${{ env.RUNS_ON }}" >> "$GITHUB_OUTPUT"
|
echo "runs_on=${{ env.RUNS_ON }}" >> "$GITHUB_OUTPUT"
|
||||||
|
1
.github/workflows/ci_build.yaml
vendored
1
.github/workflows/ci_build.yaml
vendored
@ -37,6 +37,7 @@ jobs:
|
|||||||
integration_tests:
|
integration_tests:
|
||||||
needs: build
|
needs: build
|
||||||
uses: ./.github/workflows/integration_tests.yaml # calls the one above ^
|
uses: ./.github/workflows/integration_tests.yaml # calls the one above ^
|
||||||
|
if: matrix.hardware == 'cuda'
|
||||||
with:
|
with:
|
||||||
docker_image: ${{ needs.build.outputs.docker_image }}
|
docker_image: ${{ needs.build.outputs.docker_image }}
|
||||||
docker_devices: ${{ needs.build.outputs.docker_devices }}
|
docker_devices: ${{ needs.build.outputs.docker_devices }}
|
||||||
|
Loading…
Reference in New Issue
Block a user