使用 Linux 上的 GitLab Runner,我尝试连接到 Windows 服务器并运行一些基本命令,例如
git pull
。
GitLab runner 是否提供访问 Windows 服务器的功能?
还有哪些其他选择可以完成此类要求?
我想你有几个选择
在 Windows 计算机/虚拟机上安装 openssh 并配置服务器,并使用 ssh 从 gitlab 运行程序连接(https://learn.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse)
(正如 Wojciech Wirzbicki 评论的)在 Windows 上安装 gitlab runner 实例。 https://docs.gitlab.com/runner/install/windows.html。我认为这个选项更安全,更容易获胜
使用 winrm 连接到 Windows 服务器
我已经在 Windows 计算机上安装了 openSSH 并通过 SSH 连接到它,但遇到了麻烦。您能分享一下您的工作中所需的技巧吗?