fix: set TMPDIR for skopeo to writable location

This commit is contained in:
Christopher Mühl 2026-03-04 15:02:02 +01:00
parent 29739f3d4d
commit 318db31b94
No known key found for this signature in database
GPG key ID: 925AC7D69955293F

View file

@ -87,6 +87,10 @@ 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
export TMPDIR="${TMPDIR:-$PWD/tmp}"
mkdir -p "$TMPDIR"
# Build skopeo command with optional credentials # Build skopeo command with optional credentials
SKOPEO_CMD="skopeo copy" SKOPEO_CMD="skopeo copy"
if [ -n "${{ inputs.registry-username }}" ] && [ -n "${{ inputs.registry-password }}" ]; then if [ -n "${{ inputs.registry-username }}" ] && [ -n "${{ inputs.registry-password }}" ]; then