Skip to content

Commit dc7ec90

Browse files
authored
Update action.yml
1 parent 2ddd0fc commit dc7ec90

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

action.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ 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-
find /__e -type f -executable -name 'node' -not -path '*_alpine/*' -print0 | xargs -0 -n 1 -- sh -xc 'docker run --rm --volume "$1" "docker.io/library/node:$(docker run --rm --volume "$1" docker.io/library/debian:stable-slim "$2" -e "console.log(process.versions.node)")-alpine" -e "fs.copyFileSync(process.execPath, process.argv[1])" -- "$2"' -- "$(docker inspect "$(hostname)" --format '{{ range.Mounts }}{{ if eq .Destination "/__e" }}{{ .Source }}:{{ .Destination }}{{ end }}{{ end }}')"
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'
11+
export DOCKER_CONFIG=/home/runner/.docker
12+
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"' --
13+
EOF
1114
sed -i -e 's/^ID=alpine$/ID=linux/' /etc/os-release
1215
fi
1316
shell: sh

0 commit comments

Comments
 (0)