mirror of
https://github.com/thegeeklab/drone-yaml.git
synced 2024-11-28 04:40:36 +00:00
support for windows 1903
This commit is contained in:
parent
accbce9b49
commit
a4a63fe917
@ -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/),
|
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).
|
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
|
## [1.2.2] - 2019-07-29
|
||||||
### Added
|
### Added
|
||||||
- Ability to configure network_mode, by [@bradrydzewski](https://github.com/bradrydzewski).
|
- Ability to configure network_mode, by [@bradrydzewski](https://github.com/bradrydzewski).
|
||||||
|
@ -33,10 +33,12 @@ func cloneImage(src *yaml.Pipeline) string {
|
|||||||
return "drone/git:linux-arm"
|
return "drone/git:linux-arm"
|
||||||
case src.Platform.OS == "linux" && src.Platform.Arch == "arm64":
|
case src.Platform.OS == "linux" && src.Platform.Arch == "arm64":
|
||||||
return "drone/git:linux-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":
|
case src.Platform.OS == "windows" && src.Platform.Version == "1809":
|
||||||
return "drone/git:windows-1809-amd64"
|
return "drone/git:windows-1809-amd64"
|
||||||
case src.Platform.OS == "windows" && src.Platform.Version == "1803":
|
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":
|
case src.Platform.OS == "windows" && src.Platform.Version == "1709":
|
||||||
return "drone/git:windows-1709-amd64"
|
return "drone/git:windows-1709-amd64"
|
||||||
case src.Platform.OS == "windows":
|
case src.Platform.OS == "windows":
|
||||||
|
@ -36,6 +36,10 @@ func TestCloneImage(t *testing.T) {
|
|||||||
platform: yaml.Platform{OS: "windows", Arch: "amd64", Version: "1809"},
|
platform: yaml.Platform{OS: "windows", Arch: "amd64", Version: "1809"},
|
||||||
image: "drone/git:windows-1809-amd64",
|
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"},
|
platform: yaml.Platform{OS: "windows", Arch: "amd64"},
|
||||||
image: "drone/git:windows-1809-amd64",
|
image: "drone/git:windows-1809-amd64",
|
||||||
|
Loading…
Reference in New Issue
Block a user