refactor: auto format JSON using VSC

This commit is contained in:
Hutson Betts
2020-09-21 13:24:05 -05:00
parent e691d6e33b
commit 42827c5d7f
5 changed files with 112 additions and 98 deletions

View File

@@ -24,7 +24,10 @@
"run_validation_diskspace": "false",
"announcements": "{{env `ANNOUNCEMENTS`}}"
},
"sensitive-variables": ["client_secret", "github_feed_token"],
"sensitive-variables": [
"client_secret",
"github_feed_token"
],
"builders": [
{
"type": "azure-arm",
@@ -32,7 +35,6 @@
"client_secret": "{{user `client_secret`}}",
"subscription_id": "{{user `subscription_id`}}",
"tenant_id": "{{user `tenant_id`}}",
"location": "{{user `location`}}",
"vm_size": "{{user `vm_size`}}",
"resource_group_name": "{{user `resource_group`}}",
@@ -62,7 +64,7 @@
},
{
"type": "shell",
"scripts":[
"scripts": [
"{{template_dir}}/scripts/base/repos.sh"
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
@@ -104,7 +106,7 @@
},
{
"type": "shell",
"scripts":[
"scripts": [
"{{template_dir}}/scripts/installers/preimagedata.sh"
],
"environment_vars": [
@@ -217,7 +219,7 @@
},
{
"type": "shell",
"scripts":[
"scripts": [
"{{template_dir}}/scripts/installers/Install-Toolset.ps1",
"{{template_dir}}/scripts/installers/Configure-Toolset.ps1",
"{{template_dir}}/scripts/installers/Validate-Toolset.ps1"
@@ -269,14 +271,14 @@
},
{
"type": "shell",
"scripts":[
"scripts": [
"{{template_dir}}/scripts/installers/cleanup.sh"
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{
"type": "shell",
"scripts":[
"scripts": [
"{{template_dir}}/scripts/installers/Install-PowerShellModules.ps1"
],
"environment_vars": [
@@ -289,7 +291,7 @@
"inline": [
"pwsh -File {{user `image_folder`}}/SoftwareReport/SoftwareReport.Generator.ps1 -OutputDirectory {{user `image_folder`}}"
],
"environment_vars":[
"environment_vars": [
"IMAGE_VERSION={{user `image_version`}}",
"INSTALLER_SCRIPT_FOLDER={{user `installer_script_folder`}}",
"ANNOUNCEMENTS={{user `announcements`}}"
@@ -312,7 +314,7 @@
},
{
"type": "shell",
"scripts":[
"scripts": [
"{{template_dir}}/scripts/installers/validate-disk-space.sh"
],
"environment_vars": [

View File

@@ -24,7 +24,10 @@
"run_validation_diskspace": "false",
"announcements": "{{env `ANNOUNCEMENTS`}}"
},
"sensitive-variables": ["client_secret", "github_feed_token"],
"sensitive-variables": [
"client_secret",
"github_feed_token"
],
"builders": [
{
"type": "azure-arm",
@@ -32,7 +35,6 @@
"client_secret": "{{user `client_secret`}}",
"subscription_id": "{{user `subscription_id`}}",
"tenant_id": "{{user `tenant_id`}}",
"location": "{{user `location`}}",
"vm_size": "{{user `vm_size`}}",
"resource_group_name": "{{user `resource_group`}}",
@@ -62,7 +64,7 @@
},
{
"type": "shell",
"scripts":[
"scripts": [
"{{template_dir}}/scripts/base/repos.sh"
],
"environment_vars": [
@@ -107,7 +109,7 @@
},
{
"type": "shell",
"scripts":[
"scripts": [
"{{template_dir}}/scripts/installers/preimagedata.sh"
],
"environment_vars": [
@@ -221,7 +223,7 @@
},
{
"type": "shell",
"scripts":[
"scripts": [
"{{template_dir}}/scripts/installers/Install-Toolset.ps1",
"{{template_dir}}/scripts/installers/Configure-Toolset.ps1",
"{{template_dir}}/scripts/installers/Validate-Toolset.ps1"
@@ -273,14 +275,14 @@
},
{
"type": "shell",
"scripts":[
"scripts": [
"{{template_dir}}/scripts/installers/cleanup.sh"
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{
"type": "shell",
"scripts":[
"scripts": [
"{{template_dir}}/scripts/installers/Install-PowerShellModules.ps1"
],
"environment_vars": [
@@ -293,7 +295,7 @@
"inline": [
"pwsh -File {{user `image_folder`}}/SoftwareReport/SoftwareReport.Generator.ps1 -OutputDirectory {{user `image_folder`}}"
],
"environment_vars":[
"environment_vars": [
"IMAGE_VERSION={{user `image_version`}}",
"INSTALLER_SCRIPT_FOLDER={{user `installer_script_folder`}}",
"ANNOUNCEMENTS={{user `announcements`}}"
@@ -316,7 +318,7 @@
},
{
"type": "shell",
"scripts":[
"scripts": [
"{{template_dir}}/scripts/installers/validate-disk-space.sh"
],
"environment_vars": [

View File

@@ -26,7 +26,10 @@
"go_versions": "1.14",
"announcements": "{{env `ANNOUNCEMENTS`}}"
},
"sensitive-variables": ["client_secret", "github_feed_token"],
"sensitive-variables": [
"client_secret",
"github_feed_token"
],
"builders": [
{
"type": "azure-arm",
@@ -34,7 +37,6 @@
"client_secret": "{{user `client_secret`}}",
"subscription_id": "{{user `subscription_id`}}",
"tenant_id": "{{user `tenant_id`}}",
"location": "{{user `location`}}",
"vm_size": "{{user `vm_size`}}",
"resource_group_name": "{{user `resource_group`}}",
@@ -64,7 +66,7 @@
},
{
"type": "shell",
"scripts":[
"scripts": [
"{{template_dir}}/scripts/base/repos.sh"
],
"environment_vars": [
@@ -109,7 +111,7 @@
},
{
"type": "shell",
"scripts":[
"scripts": [
"{{template_dir}}/scripts/installers/preimagedata.sh"
],
"environment_vars": [
@@ -223,7 +225,7 @@
},
{
"type": "shell",
"scripts":[
"scripts": [
"{{template_dir}}/scripts/installers/Install-Toolset.ps1",
"{{template_dir}}/scripts/installers/Configure-Toolset.ps1",
"{{template_dir}}/scripts/installers/Validate-Toolset.ps1"
@@ -275,14 +277,14 @@
},
{
"type": "shell",
"scripts":[
"scripts": [
"{{template_dir}}/scripts/installers/cleanup.sh"
],
"execute_command": "sudo sh -c '{{ .Vars }} {{ .Path }}'"
},
{
"type": "shell",
"scripts":[
"scripts": [
"{{template_dir}}/scripts/installers/Install-PowerShellModules.ps1"
],
"environment_vars": [
@@ -295,7 +297,7 @@
"inline": [
"pwsh -File {{user `image_folder`}}/SoftwareReport/SoftwareReport.Generator.ps1 -OutputDirectory {{user `image_folder`}}"
],
"environment_vars":[
"environment_vars": [
"IMAGE_VERSION={{user `image_version`}}",
"INSTALLER_SCRIPT_FOLDER={{user `installer_script_folder`}}",
"ANNOUNCEMENTS={{user `announcements`}}"
@@ -309,7 +311,7 @@
},
{
"type": "shell",
"scripts":[
"scripts": [
"{{template_dir}}/scripts/installers/validate-disk-space.sh"
],
"environment_vars": [