mirror of
https://github.com/actions/runner-images.git
synced 2026-01-09 03:57:44 +08:00
Install latest patch versions of Golang for Windows (#502)
* add golang for windows * minor changes * fix comments * resolve comments * add 1.14 version * add debug lines * fix arrays * better way to remove ecmpty strings * add path * minor fix Co-authored-by: Dmitry Shibanov <v-dmshib@microsoft.com>
This commit is contained in:
@@ -28,7 +28,9 @@
|
||||
"capture_name_prefix": "packer",
|
||||
"image_version": "dev",
|
||||
"image_os": "win19",
|
||||
"github_feed_token": "{{env `GITHUB_FEED_TOKEN`}}"
|
||||
"github_feed_token": "{{env `GITHUB_FEED_TOKEN`}}",
|
||||
"go_versions": "1.9, 1.10, 1.11, 1.12, 1.13, 1.14",
|
||||
"go_default": "1.14"
|
||||
},
|
||||
"sensitive-variables": ["install_password", "ssh_password", "client_secret", "github_feed_token"],
|
||||
"builders": [
|
||||
@@ -317,8 +319,8 @@
|
||||
{
|
||||
"type": "powershell",
|
||||
"environment_vars": [
|
||||
"GO_VERSIONS=1.10.8,1.11.12,1.12.7,1.13",
|
||||
"GO_DEFAULT=1.12.7"
|
||||
"GO_VERSIONS={{user `go_versions`}}",
|
||||
"GO_DEFAULT={{user `go_default`}}"
|
||||
],
|
||||
"scripts":[
|
||||
"{{ template_dir }}/scripts/Installers/Install-Go.ps1"
|
||||
@@ -638,8 +640,8 @@
|
||||
{
|
||||
"type": "powershell",
|
||||
"environment_vars": [
|
||||
"GO_VERSIONS=1.10.8,1.11.12,1.12.7,1.13",
|
||||
"GO_DEFAULT=1.12.7"
|
||||
"GO_VERSIONS={{user `go_versions`}}",
|
||||
"GO_DEFAULT={{user `go_default`}}"
|
||||
],
|
||||
"scripts":[
|
||||
"{{ template_dir }}/scripts/Installers/Validate-Go.ps1"
|
||||
|
||||
Reference in New Issue
Block a user