Skip to content

Commit 0e46b41

Browse files
[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.
1 parent fca5d45 commit 0e46b41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/push-container/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ runs:
2424
latest_name=$(echo $image_name | sed 's/:[a-f0-9]\+$/:latest/g')
2525
podman tag $image_name $latest_name
2626
echo "Pushing $image_name ..."
27-
podman push $image_name
27+
podman push --compression-format=zstd $image_name
2828
echo "Pushing $latest_name ..."
29-
podman push $latest_name
29+
podman push --compression-format=zstd $latest_name
3030
}
3131
3232
podman login -u ${{ github.actor }} -p $GITHUB_TOKEN ghcr.io

0 commit comments

Comments
 (0)