feat(ci): enable zstd:chunked compression (#1951)
* feat(ci): enable zstd:chunked compression https://github.com/projectbluefin/common/issues/239 * fix: only use zstd compression for artifacts The old podman version we use on the 24.04 runners seems to be really slow with pushing zstd:chunked compressed images (to tarballs), we are only using the newer podman version from brew when we actually push images to the registry. For testing PRs this is good enough. This makes the Exporting to OCI Archive step take 1m30s again and 4m for DX, with :chunked it took 4m and 7m respectively.
This commit is contained in:
parent
508115c374
commit
096b890dee
2 changed files with 3 additions and 3 deletions
4
.github/workflows/reusable-build.yml
vendored
4
.github/workflows/reusable-build.yml
vendored
|
|
@ -280,11 +280,11 @@ jobs:
|
|||
# TODO: remove me when https://github.com/containers/podman/issues/27796 fixed
|
||||
|
||||
for tag in ${ALIAS_TAGS}; do
|
||||
sudo -E /home/linuxbrew/.linuxbrew/bin/podman push ${IMAGE_NAME}:${tag} ${LOWERCASE}/${IMAGE_NAME}:${tag}
|
||||
sudo -E /home/linuxbrew/.linuxbrew/bin/podman push --compression-format=zstd:chunked --compression-level=3 ${IMAGE_NAME}:${tag} ${LOWERCASE}/${IMAGE_NAME}:${tag}
|
||||
done
|
||||
|
||||
for tag in ${ALIAS_TAGS}; do
|
||||
sudo -E /home/linuxbrew/.linuxbrew/bin/podman push ${IMAGE_NAME}:${tag} ${LOWERCASE}/${IMAGE_NAME}:${tag}
|
||||
sudo -E /home/linuxbrew/.linuxbrew/bin/podman push --compression-format=zstd:chunked --compression-level=3 ${IMAGE_NAME}:${tag} ${LOWERCASE}/${IMAGE_NAME}:${tag}
|
||||
done
|
||||
|
||||
digest=$(skopeo inspect docker://${LOWERCASE}/${IMAGE_NAME}:${DEFAULT_TAG} --format '{{.Digest}}')
|
||||
|
|
|
|||
2
Justfile
2
Justfile
|
|
@ -354,7 +354,7 @@ export-oci $image="aurora" $tag="latest" $flavor="main":
|
|||
# Image Name
|
||||
image_name=$({{ just }} image_name {{ image }} {{ tag }} {{ flavor }})
|
||||
|
||||
${PODMAN} push localhost/"${image_name}":"${tag}" oci-archive:"${image_name}".oci
|
||||
${PODMAN} push --compression-format=zstd --compression-level=3 localhost/"${image_name}":"${tag}" oci-archive:"${image_name}".oci
|
||||
|
||||
# Run Container
|
||||
[group('Image')]
|
||||
|
|
|
|||
Loading…
Reference in a new issue