Skip to content

Commit ce0da4b

Browse files
authored
Update action.yml
1 parent 1c4ac07 commit ce0da4b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ runs:
77
run: |
88
if test -d /__e && grep -q '^ID=alpine$' /etc/os-release; then
99
TMPDIR=$(mktemp -d)
10-
apk add --root "$TMPDIR" --repositories-file /etc/apk/repositories --allow-untrusted --no-cache --no-scripts --initdb -- docker-cli
11-
export PATH="$TMPDIR/usr/bin:$PATH"
12-
docker run --rm --user 0:0 --volume /:/hostfs --entrypoint /usr/sbin/chroot "$(docker inspect "$(hostname)" --format "{{ .Image }}")" /hostfs /bin/bash -xc \
10+
cd $TMPDIR
11+
apk add --root . --repositories-file /etc/apk/repositories --allow-untrusted --no-cache --no-scripts --initdb -- docker-cli
12+
./usr/bin/docker run --rm --user 0:0 --volume /:/hostfs --entrypoint /usr/sbin/chroot "$(./usr/bin/docker inspect "$(hostname)" --format "{{ .Image }}")" /hostfs /bin/bash -xc \
1313
'exec sudo -u "$(stat -c "%U" -- "$7")" -- /bin/bash -xc "$@"' -- \
1414
'find "$5" -type f -executable -name node -not -path "*_alpine/*" -print0 | xargs -0 -n 1 -- /bin/bash -xc "$@"' -- \
1515
'exec docker run --rm --volume /:/hostfs --entrypoint /bin/sh "docker.io/library/node:$("$4" -e "console.log(process.versions.node)")-alpine" -xc "$@"' -- \
1616
'apk add --no-cache -- patchelf && cp "$(which node)" "/hostfs$2" && apk info --quiet --contents libgcc libstdc++ | xargs -- tar -cC / -T- | tar -xvC "$(dirname "$(dirname "/hostfs$2")")" --strip-components 1 && patchelf --set-rpath \$ORIGIN/../lib "/hostfs$2" && ldd "/hostfs$2"' -- \
17-
"$(docker inspect "$(hostname)" --format '{{ range.Mounts }}{{ if eq .Destination "/__e" }}{{ .Source }}{{ end }}{{ end }}')"
17+
"$(./usr/bin/docker inspect "$(hostname)" --format '{{ range.Mounts }}{{ if eq .Destination "/__e" }}{{ .Source }}{{ end }}{{ end }}')"
1818
rm -rf -- "$TMPDIR"
1919
sed -i -e 's/^ID=alpine$/ID=linux/' -- /etc/os-release
2020
fi

0 commit comments

Comments
 (0)