From 3ff832a982277eaf2add2d1a85d71a281c576409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20M=C3=BChl?= Date: Wed, 4 Mar 2026 17:19:27 +0100 Subject: [PATCH] fix: use /tmp for TMPDIR instead of PWD/tmp /tmp should always be writable in containers, whereas PWD/tmp might not be accessible from nested containers. Co-Authored-By: Claude Sonnet 4.5 --- docker-build-nix/action.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-build-nix/action.yaml b/docker-build-nix/action.yaml index fe936d0..b79ce38 100644 --- a/docker-build-nix/action.yaml +++ b/docker-build-nix/action.yaml @@ -87,8 +87,8 @@ runs: TARGET_IMAGE="docker://${{ inputs.registry }}/${{ inputs.image-name }}:${{ inputs.image-tag }}" echo "Pushing OCI image to: $TARGET_IMAGE" - # Set TMPDIR to a writable location - export TMPDIR="${TMPDIR:-$PWD/tmp}" + # Set TMPDIR to a writable location (/tmp should always be writable in containers) + export TMPDIR="${TMPDIR:-/tmp}" mkdir -p "$TMPDIR" # Build skopeo command with optional credentials