refactor(windows): consistent file naming

Use the same file naming scheme for Windows as is used for Ubuntu, where
the file name includes the Operating System name and release, but
not the target platform.

This also encourages downstream consumers to re-use the same files with
alternative targets by extending the `builders` section and using the
`-only` command line option with Packer to specify the build target.

Closes #1636
This commit is contained in:
Hutson Betts
2020-10-07 23:11:54 -05:00
parent 17d233cac5
commit 5282793d8b
5 changed files with 4 additions and 4 deletions

View File

@@ -20,10 +20,10 @@ Function Get-PackerTemplatePath {
switch ($ImageType) {
([ImageType]::Windows2016) {
$relativePath = "\images\win\Windows2016-Azure.json"
$relativePath = "\images\win\windows2016.json"
}
([ImageType]::Windows2019) {
$relativePath = "\images\win\Windows2019-Azure.json"
$relativePath = "\images\win\windows2019.json"
}
([ImageType]::Ubuntu1604) {
$relativePath = "\images\linux\ubuntu1604.json"

View File

@@ -16,5 +16,5 @@ pr:
jobs:
- template: image-generation.yml
parameters:
image_type: Windows2016-Azure
image_type: windows2016
image_readme_name: Windows2016-Readme.md

View File

@@ -16,5 +16,5 @@ pr:
jobs:
- template: image-generation.yml
parameters:
image_type: Windows2019-Azure
image_type: windows2019
image_readme_name: Windows2019-Readme.md