drone-git
drone-git copied to clipboard
Set PATH in Dockerfile Instead of Clone Script
This is based on PR #41.
In windows/clone.ps1
there is a comment
HACK: no clue how to set the PATH inside the Dockerfile, so am setting it here instead. This is not idea.
These changes set the PATH in the Dockerfile instead of in the windows/clone.ps1
script.
This has the added benefit of enabling the use of the drone/git
image to use Git in a pipeline step on Windows (where there are no simple images like alpine/git
).
- name: dependencies
image: drone/git
shell: pwsh
commands:
- git clone http://example.com/library.git
@julmb Thank you very much for this. But, but we can't merge this PR now because currently we don't have a Windows 2022 machine...
@julmb Thank you very much for this. But, but we can't merge this PR now because currently we don't have a Windows 2022 machine...
Judging from recent commits, there is now a Server 2022 machine in your CI system. Any chance of getting this merged?