support for windows 1903

This commit is contained in:
Brad Rydzewski 2019-08-06 22:43:05 -07:00
parent accbce9b49
commit a4a63fe917
3 changed files with 11 additions and 1 deletions

View File

@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Added
- Support for windows server 1903, by [@bradrydzewski](https://github.com/bradrydzewski).
## [1.2.2] - 2019-07-29
### Added
- Ability to configure network_mode, by [@bradrydzewski](https://github.com/bradrydzewski).

View File

@ -33,10 +33,12 @@ func cloneImage(src *yaml.Pipeline) string {
return "drone/git:linux-arm"
case src.Platform.OS == "linux" && src.Platform.Arch == "arm64":
return "drone/git:linux-arm64"
case src.Platform.OS == "windows" && src.Platform.Version == "1903":
return "drone/git:windows-1903-amd64"
case src.Platform.OS == "windows" && src.Platform.Version == "1809":
return "drone/git:windows-1809-amd64"
case src.Platform.OS == "windows" && src.Platform.Version == "1803":
return "drone/git:windows-1803" // TODO update to correct format
return "drone/git:windows-1803-amd64"
case src.Platform.OS == "windows" && src.Platform.Version == "1709":
return "drone/git:windows-1709-amd64"
case src.Platform.OS == "windows":

View File

@ -36,6 +36,10 @@ func TestCloneImage(t *testing.T) {
platform: yaml.Platform{OS: "windows", Arch: "amd64", Version: "1809"},
image: "drone/git:windows-1809-amd64",
},
{
platform: yaml.Platform{OS: "windows", Arch: "amd64", Version: "1903"},
image: "drone/git:windows-1903-amd64",
},
{
platform: yaml.Platform{OS: "windows", Arch: "amd64"},
image: "drone/git:windows-1809-amd64",