From 318db31b94859cda3b63169b5f6f329cbb653c9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christopher=20M=C3=BChl?= Date: Wed, 4 Mar 2026 15:02:02 +0100 Subject: [PATCH] fix: set TMPDIR for skopeo to writable location --- docker-build-nix/action.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-build-nix/action.yaml b/docker-build-nix/action.yaml index e12a787..fe936d0 100644 --- a/docker-build-nix/action.yaml +++ b/docker-build-nix/action.yaml @@ -87,6 +87,10 @@ 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}" + mkdir -p "$TMPDIR" + # Build skopeo command with optional credentials SKOPEO_CMD="skopeo copy" if [ -n "${{ inputs.registry-username }}" ] && [ -n "${{ inputs.registry-password }}" ]; then