Skip to content

Commit 8e31d06

Browse files
authored
Update action.yml
1 parent dc1ba93 commit 8e31d06

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

action.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@ runs:
1414
"$(docker inspect "$(hostname)" --format '{{ range.Mounts }}{{ if eq .Destination "/__e" }}{{ .Source }}{{ end }}{{ end }}')" \
1515
'docker run --rm --volume /:/hostfs --entrypoint /bin/sh "docker.io/library/node:$("$3" -e "console.log(process.versions.node)")-alpine" -xc "$@"' -- \
1616
'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"' --
17-
18-
19-
20-
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'
21-
export DOCKER_CONFIG="$(readlink -f "$1/../../../.docker")"
22-
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/sh "docker.io/library/node:$("$1" -e "console.log(process.versions.node)")-alpine" -xc "$0" -- "$1"' '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"'
23-
EOF
2417
sed -i -e 's/^ID=alpine$/ID=linux/' /etc/os-release
2518
fi
2619
shell: sh

0 commit comments

Comments
 (0)