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 <noreply@anthropic.com>
This commit is contained in:
Christopher Mühl 2026-03-04 17:19:27 +01:00
parent 318db31b94
commit 3ff832a982
No known key found for this signature in database
GPG key ID: 925AC7D69955293F

View file

@ -87,8 +87,8 @@ runs:
TARGET_IMAGE="docker://${{ inputs.registry }}/${{ inputs.image-name }}:${{ inputs.image-tag }}" TARGET_IMAGE="docker://${{ inputs.registry }}/${{ inputs.image-name }}:${{ inputs.image-tag }}"
echo "Pushing OCI image to: $TARGET_IMAGE" echo "Pushing OCI image to: $TARGET_IMAGE"
# Set TMPDIR to a writable location # Set TMPDIR to a writable location (/tmp should always be writable in containers)
export TMPDIR="${TMPDIR:-$PWD/tmp}" export TMPDIR="${TMPDIR:-/tmp}"
mkdir -p "$TMPDIR" mkdir -p "$TMPDIR"
# Build skopeo command with optional credentials # Build skopeo command with optional credentials