Skip to content

Commit 2a58929

Browse files
authored
Update action.yml
1 parent 93cc13e commit 2a58929

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

action.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@ runs:
66
- if: runner.os == 'Linux'
77
run: |
88
if test -d /__e && grep -q '^ID=alpine$' /etc/os-release; then
9-
env
109
apk add --no-cache -- docker-cli libstdc++
11-
docker run --rm --interactive --entrypoint /usr/sbin/chroot --volume /:/hostfs "$(docker inspect "$(hostname)" --format "{{ .Image }}")" /hostfs /bin/bash -eo pipefail -xs "$(hostname)" <<'EOF'
12-
if test -f /home/runner/.docker/config.json; then
13-
export DOCKER_CONFIG=/home/runner/.docker
14-
fi
15-
env
16-
find "$(docker inspect "$1" --format '{{ range.Mounts }}{{ if eq .Destination "/__e" }}{{ .Source }}{{ end }}{{ end }}')" -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"' --
10+
docker run --rm --interactive --entrypoint /usr/sbin/chroot --volume /:/hostfs "$(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"' --
1713
EOF
1814
sed -i -e 's/^ID=alpine$/ID=linux/' /etc/os-release
1915
fi

0 commit comments

Comments
 (0)