【发布时间】:2021-03-24 00:40:52
【问题描述】:
预期行为:
触发 Github 操作管道,然后继续从 dockerfile 构建 docker 映像。
此 dockerfile 包含一个 npm install 步骤,用于安装 package.json 文件中列出的所需包。
其中一个依赖项是私有 github 存储库,因此需要使用以下格式:
"packageName": "git+https://<auth token>:x-oauth-basic@github.com/orgName/packageName.git"
它应该安装没有任何问题,并继续 dockerfile 构建过程
问题:
dockerfile 在本地构建没有问题,但是当我尝试使用 github 操作构建它时,它会输出以下错误:
npm ERR! code 128
npm ERR! command failed
npm ERR! command git ls-remote ssh://git@github.com/orgName/packageName.git
npm ERR! error: cannot run ssh: No such file or directory
npm ERR! fatal: unable to fork
注意事项:
整个 docker 镜像构建过程在本地运行没有问题,所以我真的不认为这是一个 docker 问题,而更像是一个 github 限制问题
【问题讨论】:
标签: git docker github package.json github-actions