1
0
Fork 0

Enable zstd:chunked image compression
All checks were successful
/ build-image (push) Successful in 18m50s

https://github.com/containers/storage/blob/main/docs/containers-storage-zstd-chunked.md [9a5c0986a4a33feea7cc2d956928ed0149b32d9a]:

"zstd:chunked is a variant of the
application/vnd.oci.image.layer.v1.tar+zstd media type that uses zstd
skippable frames to include additional metadata (especially a "table of
contents") that includes the SHA-256 and offsets of individual chunks of
files. Additionally chunks are compressed separately. This allows a
client to dynamically fetch only content which it doesn't already have
using HTTP range requests."
This commit is contained in:
ver4a 2024-11-06 15:39:08 +01:00
parent cb71569c13
commit d9c7a1808d

View file

@ -7,6 +7,6 @@ jobs:
- run: cd ${{ env.GITHUB_WORKSPACE }}
- run: podman login -u ${{ vars.REGISTRY_USERNAME }} -p ${{ secrets.REGISTRY_PASSWORD }} ${{ vars.REGISTRY_DOMAIN }}
- run: podman build . --no-cache --pull=always --squash-all -t ${{ vars.REGISTRY_DOMAIN }}/${{ vars.MAIN_IMAGE }}:40
- run: podman push ${{ vars.REGISTRY_DOMAIN }}/${{ vars.MAIN_IMAGE }}:40 ${{ vars.REGISTRY_DOMAIN }}/${{ vars.MAIN_IMAGE }}:40
- run: podman push --compression-format=zstd:chunked --compression-level=20 ${{ vars.REGISTRY_DOMAIN }}/${{ vars.MAIN_IMAGE }}:40 ${{ vars.REGISTRY_DOMAIN }}/${{ vars.MAIN_IMAGE }}:40
- if: '!cancelled()'
run: podman image rm -f ${{ vars.REGISTRY_DOMAIN }}/${{ vars.MAIN_IMAGE }}:40 && podman image prune -f