From c54dd89279405dfdf35a78bc6157f850c834d9d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20M=C3=BChl?= Date: Wed, 4 Mar 2026 17:45:45 +0100 Subject: [PATCH] fix: ensure /var/tmp exists for skopeo operations Skopeo may use /var/tmp for temporary files during docker-archive operations, even when TMPDIR is set. Create the directory to prevent 'no such file or directory' errors. --- docker-build-nix/action.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker-build-nix/action.yaml b/docker-build-nix/action.yaml index b79ce38..1680db6 100644 --- a/docker-build-nix/action.yaml +++ b/docker-build-nix/action.yaml @@ -91,6 +91,9 @@ runs: export TMPDIR="${TMPDIR:-/tmp}" mkdir -p "$TMPDIR" + # Ensure /var/tmp exists as fallback (skopeo may use this) + sudo mkdir -p /var/tmp 2>/dev/null || mkdir -p /var/tmp || true + # Build skopeo command with optional credentials SKOPEO_CMD="skopeo copy" if [ -n "${{ inputs.registry-username }}" ] && [ -n "${{ inputs.registry-password }}" ]; then