CICD Self Hosted Runner and with live junction pointing at deployment
Hi all, I have a Windows Server 2026 box running IIS and am attempting setup a GitHub CI/CD pipeline. I am using a self hosted runner and that runner has been setup with minimum privileges to do it's thing. I have the following setup: - IIS points at a junction, - junction points at the build folder. -Project/ -live/ -> junction points at the live release -releases/ -v1/ -v2/ <- pointed at by live junction All is well in my workflow until a try to delete my old junction and recreate my new junction, pointing at the newly built version. It fails, I think because a IIS process still has a hold on the content of /live. Because the user account running the GitHub action runner is low privilege, it cannot stop IIS. I tried creating a scheduled task running as SYSTEM and manually triggering the task, but my low privilege user can't do that either. How have others overcome this? Any help greatly appreciated. I'm in a corporate environment so can't be lazy and give the action runner admin privileges. This has consumed my day. submitted by /u/Wotsits1984 [link] [留言]