Public Access
1
0

1 Commits
v2 ... v3

Author SHA1 Message Date
peet 512d32e285 fix podman root 2026-04-24 21:55:34 +02:00
+13 -18
View File
@@ -39,21 +39,16 @@ runs:
run: | run: |
set -euo pipefail set -euo pipefail
# Keep Podman defaults aligned with runner build workflows. # Fixed Podman storage paths — re-derived in each step to avoid
# relying on GITHUB_ENV propagation between composite action steps.
podman_root="${RUNNER_TEMP}/podman-root" podman_root="${RUNNER_TEMP}/podman-root"
podman_runroot="${RUNNER_TEMP}/podman-runroot" podman_runroot="${RUNNER_TEMP}/podman-runroot"
storage_driver="vfs"
build_isolation="chroot"
rm -rf "${podman_root}" "${podman_runroot}" rm -rf "${podman_root}" "${podman_runroot}"
mkdir -p "${podman_root}" "${podman_runroot}" mkdir -p "${podman_root}" "${podman_runroot}"
# Export for use in subsequent steps # Export only input-derived values that cannot be recomputed later.
{ {
echo "PODMAN_ROOT=${podman_root}"
echo "PODMAN_RUNROOT=${podman_runroot}"
echo "STORAGE_DRIVER=${storage_driver}"
echo "BUILD_ISOLATION=${build_isolation}"
echo "IMAGE_BASE=registry.noctrl.eu/${{ inputs.image-name }}" echo "IMAGE_BASE=registry.noctrl.eu/${{ inputs.image-name }}"
} >> "${GITHUB_ENV}" } >> "${GITHUB_ENV}"
@@ -73,9 +68,9 @@ runs:
set -euo pipefail set -euo pipefail
podman_args=( podman_args=(
--root "${PODMAN_ROOT}" --root "${RUNNER_TEMP}/podman-root"
--runroot "${PODMAN_RUNROOT}" --runroot "${RUNNER_TEMP}/podman-runroot"
--storage-driver "${STORAGE_DRIVER}" --storage-driver vfs
) )
echo "Logging in to registry: registry.noctrl.eu" echo "Logging in to registry: registry.noctrl.eu"
@@ -87,12 +82,12 @@ runs:
set -euo pipefail set -euo pipefail
podman_args=( podman_args=(
--root "${PODMAN_ROOT}" --root "${RUNNER_TEMP}/podman-root"
--runroot "${PODMAN_RUNROOT}" --runroot "${RUNNER_TEMP}/podman-runroot"
--storage-driver "${STORAGE_DRIVER}" --storage-driver vfs
) )
build_cmd=(podman "${podman_args[@]}" build --isolation "${BUILD_ISOLATION}" -f "${{ inputs.containerfile }}") build_cmd=(podman "${podman_args[@]}" build --isolation chroot -f "${{ inputs.containerfile }}")
# Add build args # Add build args
while IFS= read -r build_arg; do while IFS= read -r build_arg; do
@@ -117,9 +112,9 @@ runs:
set -euo pipefail set -euo pipefail
podman_args=( podman_args=(
--root "${PODMAN_ROOT}" --root "${RUNNER_TEMP}/podman-root"
--runroot "${PODMAN_RUNROOT}" --runroot "${RUNNER_TEMP}/podman-runroot"
--storage-driver "${STORAGE_DRIVER}" --storage-driver vfs
) )
echo "Pushing image tags:" echo "Pushing image tags:"