diff --git a/images/windows/templates/windows-2019.pkr.hcl b/images/windows/templates/windows-2019.pkr.hcl index 1ec030585c4a8..0d34e27163983 100644 --- a/images/windows/templates/windows-2019.pkr.hcl +++ b/images/windows/templates/windows-2019.pkr.hcl @@ -309,7 +309,8 @@ build { scripts = [ "${path.root}/../scripts/build/Install-VisualStudio.ps1", "${path.root}/../scripts/build/Install-KubernetesTools.ps1", - "${path.root}/../scripts/build/Install-NET48-devpack.ps1" + "${path.root}/../scripts/build/Install-NET48-devpack.ps1", + "${path.root}/../scripts/build/Install-PostgreSQL.ps1", ] valid_exit_codes = [0, 3010] } @@ -386,7 +387,6 @@ build { "${path.root}/../scripts/build/Install-NSIS.ps1", "${path.root}/../scripts/build/Install-CloudFoundryCli.ps1", "${path.root}/../scripts/build/Install-Vcpkg.ps1", - "${path.root}/../scripts/build/Install-PostgreSQL.ps1", "${path.root}/../scripts/build/Install-Bazel.ps1", "${path.root}/../scripts/build/Install-AliyunCli.ps1", "${path.root}/../scripts/build/Install-RootCA.ps1", diff --git a/images/windows/templates/windows-2022.pkr.hcl b/images/windows/templates/windows-2022.pkr.hcl index 0c66a7dbfa1f1..6c5b50b0e34d1 100644 --- a/images/windows/templates/windows-2022.pkr.hcl +++ b/images/windows/templates/windows-2022.pkr.hcl @@ -298,7 +298,8 @@ build { environment_vars = ["IMAGE_FOLDER=${var.image_folder}", "TEMP_DIR=${var.temp_dir}"] scripts = [ "${path.root}/../scripts/build/Install-VisualStudio.ps1", - "${path.root}/../scripts/build/Install-KubernetesTools.ps1" + "${path.root}/../scripts/build/Install-KubernetesTools.ps1", + "${path.root}/../scripts/build/Install-PostgreSQL.ps1", ] valid_exit_codes = [0, 3010] }