我在 Ubuntu VM 上运行 Github Actions Self Hosted Runner:~$ cat /etc/os-releaseNAME=\'Ubuntu\'VERSION=\'20.04.6 LTS (Focal Fossa)\'ID=ubuntuID_LIKE=debianPRETTY_NAME=\'
我在 Ubuntu VM 上运行 Github Actions Self Hosted Runner:
~$ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
我正在运行 Actions Runner 版本 2.317.0
内容 如下:
我正在使用 GitHub Actions:
jobs:
my-job:
runs-on: [my-ubuntu]
timeout-minutes: 120
container:
image: my-image-path:latest
credentials:
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
steps:
- name: Checkout Source Code
uses: actions/[email protected]
但是当作业执行时,我 在作业日志中 错误
/usr/bin/docker exec XXXX sh -c "cat /etc/*release | grep ^ID"
/__e/node20/bin/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /__e/node20/bin/node)
在 Ubuntu VM 上,我已经安装了节点,并且它正在按预期运行;不确定为什么运行器抱怨无法运行 node 20
# Self-Hosted Runner Ubuntu 20.04
$ node -v
v20.15.0
附加信息:
$ ldd --version
ldd (Ubuntu GLIBC 2.31-0ubuntu9.16) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
目前,为了避免 CI 的停机,我正在运行如下脚本:
bash -c 'ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true run.sh' > nohup.out 2>&1 &
## and github actions
steps:
- name: Checkout Source Code
uses: actions/checkout@v3