From d9c7a1808d186f4d7b39f2db8f17d6a5cb19960c Mon Sep 17 00:00:00 2001 From: ver4a Date: Wed, 6 Nov 2024 15:39:08 +0100 Subject: [PATCH] Enable zstd:chunked image compression 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." --- .forgejo/workflows/build-image.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/build-image.yaml b/.forgejo/workflows/build-image.yaml index ea914bd..84e75e3 100644 --- a/.forgejo/workflows/build-image.yaml +++ b/.forgejo/workflows/build-image.yaml @@ -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