fix: use workspace as build context so FROM oci-archive can find out.ociarchive
This commit is contained in:
@@ -107,17 +107,18 @@ jobs:
|
|||||||
# --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
|
||||||
CHUNKAH_DIR=$(mktemp -d)
|
CHUNKAH_CF=$(mktemp)
|
||||||
curl -sL https://github.com/coreos/chunkah/releases/download/v0.5.0/Containerfile.splitter -o "$CHUNKAH_DIR/Containerfile"
|
curl -sL https://github.com/coreos/chunkah/releases/download/v0.5.0/Containerfile.splitter -o "$CHUNKAH_CF"
|
||||||
|
|
||||||
buildah build --skip-unused-stages=false \
|
buildah build --skip-unused-stages=false \
|
||||||
|
-f "$CHUNKAH_CF" \
|
||||||
--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 --compressed --label ostree.commit- --label ostree.final-diffid-" \
|
--build-arg "CHUNKAH_ARGS=--prune /sysroot/ --max-layers 128 --compressed --label ostree.commit- --label ostree.final-diffid-" \
|
||||||
-t "$CHUNKED_IMG" \
|
-t "$CHUNKED_IMG" \
|
||||||
"$CHUNKAH_DIR"
|
.
|
||||||
|
|
||||||
rm -rf "$CHUNKAH_DIR"
|
rm -f "$CHUNKAH_CF" out.ociarchive
|
||||||
|
|
||||||
# Platz freigeben: Original und Zwischenprodukt entfernen
|
# Platz freigeben: Original und Zwischenprodukt entfernen
|
||||||
buildah rmi "$IMG"
|
buildah rmi "$IMG"
|
||||||
|
|||||||
Reference in New Issue
Block a user