Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GitLab CI/CD pipeline, deploy to Windows Server

Using GitLab Runner I have on Linux, I am trying to connect to a Windows Server and run some basic commands there such as git pull.

Does GitLab runner provide any capabilities for accessing windows server?

What other options are there to get such requirement done?

like image 771
Benjamin Avatar asked Dec 04 '18 06:12

Benjamin


People also ask

Can GitLab be used for CI CD?

Build, test, deploy, and monitor your code from a single application. deployment speed. GitLab has CI/CD built right in, no plugins required.


1 Answers

I think you have a few options

  • install openssh and configure server on your windows machine/vm and connect from your gitlab runner with ssh ( https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_install_firstuse )

  • ( as Wojciech Wirzbicki commented) install a gitlab runner instance on windows. https://docs.gitlab.com/runner/install/windows.html . I think this option more secure and easy win

  • connect to windows server with winrm

like image 177
n3d4ti Avatar answered Oct 29 '22 02:10

n3d4ti