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

View file

@ -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