Skip to content

Commit cd27a85

Browse files
authored
Update action.yml
1 parent 6a0c060 commit cd27a85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ runs:
88
if test -d /__e && grep -q '^ID=alpine$' /etc/os-release; then
99
apk add --root /tmp/test --repositories-file /etc/apk/repositories --allow-untrusted --no-cache --no-scripts --initdb -- docker-cli libstdc++ patchelf
1010
export PATH=/tmp/test/usr/bin:$PATH
11+
export LD_LIBRARY_PATH=/tmp/test/usr/lib
1112
docker run --rm --interactive --user 0:0 --volume /:/hostfs --entrypoint /usr/sbin/chroot "$(docker inspect "$(hostname)" --format "{{ .Image }}")" /hostfs /bin/bash -eo pipefail -xs "$(docker inspect "$(hostname)" --format '{{ range.Mounts }}{{ if eq .Destination "/__e" }}{{ .Source }}{{ end }}{{ end }}')" <<'EOF'
1213
export DOCKER_CONFIG="$(readlink -f "$1/../../../.docker")"
1314
find "$1" -type f -executable -name 'node' -not -path '*_alpine/*' -print0 | xargs -0 -n 1 -- /bin/bash -xc 'docker run --rm --volume /:/hostfs --entrypoint /bin/cp "docker.io/library/node:$("$1" -e "console.log(process.versions.node)")-alpine" /usr/local/bin/node "/hostfs$1"' --
1415
EOF
15-
find "/__e" -type f -executable -name 'node' -not -path '*_alpine/*' -print0 | LD_LIBRARY_PATH=/test/usr/lib xargs -0 -n 1 -- patchelf --set-rpath /test/usr/lib
16+
find "/__e" -type f -executable -name 'node' -not -path '*_alpine/*' -print0 | xargs -0 -n 1 -- patchelf --set-rpath /tmp/test/usr/lib
1617
sed -i -e 's/^ID=alpine$/ID=linux/' /etc/os-release
1718
fi
1819
shell: sh

0 commit comments

Comments
 (0)