[Github] Use zstd to compress CI container images (#166879)

zstd usually offers better compression ratios, but also offers much
higher decompression speeds, which can tangibly impact image unpack
times. Enable this by default given it is a two line change that is
transparent at image pull time given most container runtimes these days
supported zstd compressed images.
This commit is contained in:
Aiden Grossman
2025-11-06 19:39:23 -08:00
committed by GitHub
parent fca5d45d32
commit 0e46b41890

View File

@@ -24,9 +24,9 @@ runs:
latest_name=$(echo $image_name | sed 's/:[a-f0-9]\+$/:latest/g')
podman tag $image_name $latest_name
echo "Pushing $image_name ..."
podman push $image_name
podman push --compression-format=zstd $image_name
echo "Pushing $latest_name ..."
podman push $latest_name
podman push --compression-format=zstd $latest_name
}
podman login -u ${{ github.actor }} -p $GITHUB_TOKEN ghcr.io