Skip to content

Commit 0667f64

Browse files
authored
Update action.yml
1 parent 5c5dc3d commit 0667f64

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ runs:
1010
export PATH=/tmp/test/usr/bin:$PATH
1111
1212
docker run --rm --interactive --user 0:0 --volume /:/hostfs --entrypoint /usr/sbin/chroot "$(docker inspect "$(hostname)" --format "{{ .Image }}")" /hostfs /bin/bash -eo pipefail -xc \
13-
'find "$0" -type f -executable -name node -not -path "*_alpine/*" -print0 | DOCKER_CONFIG="$(readlink -f "$0/../../../.docker")" xargs -0 -n 1 -- echo /bin/bash -xc "$@" --' \
14-
"$(docker inspect "$(hostname)" --format '{{ range.Mounts }}{{ if eq .Destination "/__e" }}{{ .Source }}{{ end }}{{ end }}')" \
15-
'echo $0'
13+
'find "$3" -type f -executable -name node -not -path "*_alpine/*" -print0 | DOCKER_CONFIG="$(readlink -f "$3/../../../.docker")" xargs -0 -n 1 -- /bin/bash -xc "$@"' -- \
14+
'docker run --rm --volume /:/hostfs --entrypoint /bin/sh "docker.io/library/node:$("$2" -e "console.log(process.versions.node)")-alpine" -xc "$@"' -- \
15+
'apk add --no-cache -- patchelf && cp "$(which node)" "/hostfs$1" && apk info --quiet --contents libgcc libstdc++ | xargs tar -cC / -T- | tar -xvC "$(dirname "$(dirname "/hostfs$1")")" --strip-component 1 && patchelf --set-rpath \$ORIGIN/../lib "/hostfs$1" && ldd "/hostfs$1"' -- \
16+
"$(docker inspect "$(hostname)" --format '{{ range.Mounts }}{{ if eq .Destination "/__e" }}{{ .Source }}{{ end }}{{ end }}')"
17+
1618
1719
1820
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'

0 commit comments

Comments
 (0)