Gitlab Windows Runners 中无法识别 Terraform 命令
Terraform command not recognized in Gitlab Windows Runners
我在本地 Windows 机器上安装了 Gitlab runner。定义了一些作业,但其中一个是“terraform version”,但作业在 Gitlab CI 中失败,下面是错误,
$ terraform version
terraform: The term 'terraform' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
注意:从工作目录执行时,Terraform 在没有 Gitlab 的情况下在本地运行良好。
有人可以通过这里的灯,谢谢。
由于 windows 问题未解决或无法解决,我尝试了另一种选择,即。通过在同一台 windows 机器上为 Linux (WSL) 安装 Windows 子系统。
谢谢大家
我在本地 Windows 机器上安装了 Gitlab runner。定义了一些作业,但其中一个是“terraform version”,但作业在 Gitlab CI 中失败,下面是错误,
$ terraform version
terraform: The term 'terraform' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
注意:从工作目录执行时,Terraform 在没有 Gitlab 的情况下在本地运行良好。
有人可以通过这里的灯,谢谢。
由于 windows 问题未解决或无法解决,我尝试了另一种选择,即。通过在同一台 windows 机器上为 Linux (WSL) 安装 Windows 子系统。 谢谢大家