We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50474a9 commit 1952c0aCopy full SHA for 1952c0a
action.yml
@@ -8,6 +8,7 @@ runs:
8
if test -d /__e && grep -q '^ID=alpine$' /etc/os-release; then
9
apk add --no-cache -- docker-cli libstdc++
10
docker run --rm --interactive --entrypoint /usr/sbin/chroot --volume /:/hostfs "$(docker inspect "$(hostname)" --format "{{ .Image }}")" /hostfs /bin/bash -eo pipefail -xs "$(hostname)" <<'EOF'
11
+ export DOCKER_CONFIG=/home/runner/.docker
12
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"' --
13
EOF
14
sed -i -e 's/^ID=alpine$/ID=linux/' /etc/os-release
0 commit comments