fix: remove sudo from rechunk step to match rootless buildah storage

This commit is contained in:
gunnar
2026-05-30 16:02:50 +02:00
parent 94460a999d
commit bc3f0180e2
+5 -5
View File
@@ -98,13 +98,13 @@ jobs:
CHUNKED_IMG="localhost/${{ env.IMAGE_NAME }}-chunked:${{ env.DEFAULT_TAG }}" CHUNKED_IMG="localhost/${{ env.IMAGE_NAME }}-chunked:${{ env.DEFAULT_TAG }}"
# Image-Config fuer chunkah sichern (Labels, Annotations, etc.) # Image-Config fuer chunkah sichern (Labels, Annotations, etc.)
CONFIG=$(sudo buildah inspect "$IMG" | jq -c .) CONFIG=$(buildah inspect "$IMG" | jq -c .)
# chunkah: content-based Layer-Splitting # chunkah: content-based Layer-Splitting
# --max-layers 128: Desktop-Images brauchen mehr als Default (64) # --max-layers 128: Desktop-Images brauchen mehr als Default (64)
# --prune /sysroot/: entfernt OSTree-Metadaten (optional seit bootc 1.1.3) # --prune /sysroot/: entfernt OSTree-Metadaten (optional seit bootc 1.1.3)
# --label ostree.*: entfernt gueltigkeitsfaehige ostree-Labels # --label ostree.*: entfernt gueltigkeitsfaehige ostree-Labels
sudo buildah build --skip-unused-stages=false \ buildah build --skip-unused-stages=false \
--from "$IMG" \ --from "$IMG" \
--build-arg CHUNKAH_CONFIG_STR="$CONFIG" \ --build-arg CHUNKAH_CONFIG_STR="$CONFIG" \
--build-arg "CHUNKAH_ARGS=--prune /sysroot/ --max-layers 128 --label ostree.commit- --label ostree.final-diffid-" \ --build-arg "CHUNKAH_ARGS=--prune /sysroot/ --max-layers 128 --label ostree.commit- --label ostree.final-diffid-" \
@@ -112,9 +112,9 @@ jobs:
https://github.com/coreos/chunkah/releases/download/v0.5.0/Containerfile.splitter https://github.com/coreos/chunkah/releases/download/v0.5.0/Containerfile.splitter
# Platz freigeben: Original und Zwischenprodukt entfernen # Platz freigeben: Original und Zwischenprodukt entfernen
sudo buildah rmi "$IMG" buildah rmi "$IMG"
sudo buildah tag "$CHUNKED_IMG" "$IMG" buildah tag "$CHUNKED_IMG" "$IMG"
sudo buildah rmi "$CHUNKED_IMG" buildah rmi "$CHUNKED_IMG"
- name: Login to GitHub Container Registry - name: Login to GitHub Container Registry
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v3 uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v3