Fix OCI path and output format in build.yml
Updated the syntax for the OCI path and output format in the build process.
This commit is contained in:
@@ -99,14 +99,15 @@ jobs:
|
|||||||
podman save --format oci-dir -o ./monolith-oci localhost/${{ env.IMAGE_NAME }}:${{ env.DEFAULT_TAG }}
|
podman save --format oci-dir -o ./monolith-oci localhost/${{ env.IMAGE_NAME }}:${{ env.DEFAULT_TAG }}
|
||||||
|
|
||||||
# JETZT ABSOLUT RECHTE-UNABHÄNGIG: Rechunking liest direkt vom OCI-Verzeichnis
|
# JETZT ABSOLUT RECHTE-UNABHÄNGIG: Rechunking liest direkt vom OCI-Verzeichnis
|
||||||
|
# JETZT MIT KORREKTER SYNTAX: 'oci:' statt 'oci-dir:' und absoluten Pfaden
|
||||||
- name: Apply native bootc rechunking
|
- name: Apply native bootc rechunking
|
||||||
id: rechunk
|
id: rechunk
|
||||||
run: |
|
run: |
|
||||||
set -x
|
set -x
|
||||||
mkdir -p ./chunkah-out
|
mkdir -p ./chunkah-out
|
||||||
|
|
||||||
# Wir führen das Tool mit sudo/privileged aus, damit 'unshare' im Container klappt.
|
# Wir übergeben den Pfad absolut als /workspace/monolith-oci
|
||||||
# Wir mounten nur noch die nackten Ordner aus unserem Workspace hinein.
|
# und nutzen das korrekte 'oci:'-Präfix für rpm-ostree
|
||||||
sudo podman run --rm --privileged \
|
sudo podman run --rm --privileged \
|
||||||
-v .:/workspace:z \
|
-v .:/workspace:z \
|
||||||
-w /workspace \
|
-w /workspace \
|
||||||
@@ -115,10 +116,10 @@ jobs:
|
|||||||
--bootc \
|
--bootc \
|
||||||
--format-version=2 \
|
--format-version=2 \
|
||||||
--max-layers 128 \
|
--max-layers 128 \
|
||||||
--from=oci-dir:./monolith-oci \
|
--from=oci:/workspace/monolith-oci \
|
||||||
--output=oci-archive:./chunkah-out/image.ociarchive
|
--output=oci-archive:/workspace/chunkah-out/image.ociarchive
|
||||||
|
|
||||||
# Besitzrechte wieder an den normalen GHA-User übergeben, damit Skopeo rankommt
|
# Besitzrechte wieder an den normalen GHA-User übergeben
|
||||||
sudo chown -R runner:docker ./chunkah-out
|
sudo chown -R runner:docker ./chunkah-out
|
||||||
|
|
||||||
# Aufräumen des temporären Monolithen
|
# Aufräumen des temporären Monolithen
|
||||||
|
|||||||
Reference in New Issue
Block a user