fix: set TMPDIR for skopeo to writable location
This commit is contained in:
parent
29739f3d4d
commit
318db31b94
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue