Cleaner tags.

This commit is contained in:
Nicolas Patry 2025-03-18 12:52:33 +01:00
parent efa0fcd3e2
commit b080f1e31e
No known key found for this signature in database
GPG Key ID: 4242CEF24CB6DBF9

View File

@ -44,6 +44,10 @@ jobs:
registry: registry.internal.huggingface.tech
- name: Push to docker
run: |
export TAG=nix-sha-${{ env.GITHUB_SHA_SHORT }}
if [ "${{ github.event_name }}" = "pull_request" ]; then
export TAG=nix-sha-${{ env.GITHUB_SHA_SHORT }}
else
export TAG=nix-{{ version }}
fi
export IMAGE=registry.internal.huggingface.tech/api-inference/community/text-generation-inference:$TAG
nix-shell -p skopeo --command "skopeo --insecure-policy copy docker-archive:$(readlink -f ./result) docker://registry.internal.huggingface.tech/api-inference/community/text-generation-inference:nix-docker-test6 --dest-compress-format zstd"
nix-shell -p skopeo --command "skopeo --insecure-policy copy docker-archive:$(readlink -f ./result) docker://$IMAGE --dest-compress-format zstd"