nix-v3.2.1 -> v3.2.1-nix

make it easier to check for version using semver semantic (same major
and minor)
This commit is contained in:
Corentin REGAL 2025-03-20 16:34:03 +01:00
parent 2e60a8dd65
commit e5b1aed2b3

View File

@ -47,7 +47,7 @@ jobs:
if [ "${{ github.event_name }}" = "pull_request" ]; then if [ "${{ github.event_name }}" = "pull_request" ]; then
export TAG=nix-sha-${{ env.GITHUB_SHA_SHORT }} export TAG=nix-sha-${{ env.GITHUB_SHA_SHORT }}
else else
export TAG=nix-${{ github.ref_name }} export TAG=${{ github.ref_name }}-nix
fi fi
export IMAGE=registry.internal.huggingface.tech/api-inference/community/text-generation-inference:$TAG 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://$IMAGE --dest-compress-format zstd" nix-shell -p skopeo --command "skopeo --insecure-policy copy docker-archive:$(readlink -f ./result) docker://$IMAGE --dest-compress-format zstd"