I have managed to set up a working CICD pipeline for my monorepo GitLab project… At least for the CI part !
The CD seems less obvious to me and i am currently considering two options to achieve a deployment to production, wondering if i am going to the right direction
My goal is to deploy a directory structure, containing files and folders to my production server. No build stuff, just plain copy.
My runner is a docker image (powershell Core, but the script language is not very crucial here, since i am looking for advices on the right methods to use)
My production server is Windows Server
I have have two options in mind so far :
prod server hosting a bare git repo
in my runner script, i set up git live repo and push to it
seems easier : just starting a RSYNC ./ prod_server
in both cases, it seems that i have to set up SSH keys (thus install third party stuff on my Windows Server to handle OpenSSH :() i would have go the ROBOCOPY way if i had it available for my docker environment, but it seems it’s a Windows only tool …
Do you see other options ? With theses two, SSH is the only way to go ?
Thanks for your advices