Hi,
I have a Windows docker pipeline (Windows 1809) and I was trying to use the drone/git image as a step with some custom git commands.
I just wanted to test the image and I added this step:
- name: tag
image: drone/git
commands:
- cmd /c dir
when:
event: tag
This fails, the drone web UI only displays “dockertest: tag - Error” and doesn’t show any logs (as an aside…if one step in the pipeline fails like this, can’t see the logs for any other step).
Digging through the logs on the runner I see:
Error response from daemon: container e03a01a4b5ed19c6a9fabb6de09e15c977bb33603d164e1141c29510ad8ebd2a encountered an error during hcsshim::System::CreateProcess: failure in a Windows system call: The system cannot find the file specified.
I suspect it has to do with the fact that drone/git is based on nanoserver which doesn’t have powershell.exe (it has pwsh.exe). The drone runner seems to want to use powershell.exe right? Is there any workaround for this short of creating my own images?