docker_images icon indicating copy to clipboard operation
docker_images copied to clipboard

Node 20

Open nopjmp opened this issue 2 years ago • 4 comments

https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/

Node 20 is not included in the ACT images and GitHub wants everyone to move over to Node 20 for GitHub Actions.

nopjmp avatar Apr 13 '24 22:04 nopjmp

This now hit me on my homelab setup because docker/setup-buildx-action has switched to the new crypto inbuilt as of 6 hours ago and broke running on these wonderful images.

iMartyn avatar Oct 03 '24 14:10 iMartyn

You can probably switch to one of the js images:

note these lines in js.sh.

  1. # node 16 and 18 are already installed in act-*
  2. node v20 added here

From the Docs

/linux/ubuntu/js - ghcr.io/catthehacker/ubuntu:act-* but with js tools installed (yarn, nvm, node v16/v18, pnpm, grunt, etc.)

ghcr.io/catthehacker/ubuntu:js-20.04 ghcr.io/catthehacker/ubuntu:js-22.04 ghcr.io/catthehacker/ubuntu:js-latest

Docker Hub

docker://catthehacker/ubuntu:js-latest

vanburenx avatar Oct 11 '24 19:10 vanburenx

I tried doing this the container has this issue that the PATH is hardcoded to node 18.

So I made a new container based on the one I wanted and replaced the node version:

FROM catthehacker/ubuntu:js-22.04
ENV PATH="/opt/acttoolcache/node/20.18.0/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin"

After that I run act -P=ubuntu-22.04=dhruv/ubuntu:js-22.04-fixed --pull=false

dc-mak avatar Nov 08 '24 13:11 dc-mak

Should be fixed by #139

catthehacker avatar Feb 03 '25 16:02 catthehacker