Skip to content

Commit

Permalink
Use zstd
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil committed Feb 20, 2025
1 parent 39eeb34 commit f3c4d19
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,15 @@ jobs:
target: ${{ env.TARGET }}
tags: ${{ steps.meta.outputs.tags || steps.meta-pr.outputs.tags }}
labels: ${{ steps.meta.outputs.labels || steps.meta-pr.outputs.labels }}
outputs: type=image,compression=zstd,force-compression=true,push=true
cache-from: type=s3,region=us-east-1,bucket=ci-docker-buildx-cache,name=text-generation-inference-cache${{ env.LABEL }},mode=max,access_key_id=${{ secrets.S3_CI_DOCKER_BUILDX_CACHE_ACCESS_KEY_ID }},secret_access_key=${{ secrets.S3_CI_DOCKER_BUILDX_CACHE_SECRET_ACCESS_KEY }},mode=min
cache-to: type=s3,region=us-east-1,bucket=ci-docker-buildx-cache,name=text-generation-inference-cache${{ env.LABEL }},mode=min,access_key_id=${{ secrets.S3_CI_DOCKER_BUILDX_CACHE_ACCESS_KEY_ID }},secret_access_key=${{ secrets.S3_CI_DOCKER_BUILDX_CACHE_SECRET_ACCESS_KEY }},mode=min
- name: Build and push Docker image (Zstd)
id: build-and-push (zstd)
run: |
export LAB="sha-${{ env.GITHUB_SHA_SHORT }}${{ env.LABEL }}"
docker image tag docker.io/huggingface/text-generation-inference-ci:$LAB registry.internal.huggingface.tech/api-inference/community/text-generation-inference:$LAB
docker push registry.internal.huggingface.tech/api-inference/community/text-generation-inference:$LAB ---output "type=image,compression=zstd,force-compression=true,push=true"
- name: Final
id: final
run: |
Expand Down

0 comments on commit f3c4d19

Please sign in to comment.