Skip to content

Commit e22e099

Browse files
authored
Update action.yml
1 parent dc7ec90 commit e22e099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
run: |
88
if test -d /__e && grep -q '^ID=alpine$' /etc/os-release; then
99
apk add --no-cache -- docker-cli libstdc++
10-
docker run --rm --interactive --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'
10+
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'
1111
export DOCKER_CONFIG=/home/runner/.docker
1212
find "$1" -type f -executable -name 'node' -not -path '*_alpine/*' -print0 | xargs -0 -n 1 -- /bin/bash -xc 'docker run --rm --volume /:/hostfs "docker.io/library/node:$("$1" -e "console.log(process.versions.node)")-alpine" -e "fs.copyFileSync(process.execPath, process.argv[1])" -- "/hostfs$1"' --
1313
EOF

0 commit comments

Comments
 (0)