mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
[Packer] Fix anka packer template (#5778)
* Fix anka packer template Fix indentation Use sources * Update boostrap path
This commit is contained in:
committed by
GitHub
parent
2f3323ba68
commit
ceb7831e50
@@ -213,7 +213,10 @@ build {
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./provision/core/toolset.ps1"
|
||||
scripts = [
|
||||
"./provision/core/toolset.ps1",
|
||||
"./provision/core/configure-toolset.ps1"
|
||||
]
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} pwsh -f {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
|
||||
@@ -64,11 +64,13 @@ build {
|
||||
"source.veertu-anka-vm-clone.template"
|
||||
]
|
||||
provisioner "shell" {
|
||||
inline = "mkdir ~/image-generation"
|
||||
inline = [
|
||||
"mkdir ~/image-generation"
|
||||
]
|
||||
}
|
||||
provisioner "file" {
|
||||
destination = "~/image-generation/"
|
||||
source = [
|
||||
destination = "image-generation/"
|
||||
sources = [
|
||||
"./provision/assets",
|
||||
"./tests",
|
||||
"./software-report",
|
||||
@@ -98,7 +100,7 @@ build {
|
||||
}
|
||||
provisioner "file" {
|
||||
destination = "bootstrap"
|
||||
source = "./provision/bootstrap-provisioner"
|
||||
source = "./provision/bootstrap-provisioner/"
|
||||
}
|
||||
provisioner "file" {
|
||||
destination = "image-generation/toolset.json"
|
||||
@@ -135,7 +137,7 @@ build {
|
||||
}
|
||||
provisioner "shell" {
|
||||
script = "./provision/core/reboot.sh"
|
||||
execute_command = execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; sudo {{ .Vars }} {{ .Path }}"
|
||||
expect_disconnect = true
|
||||
}
|
||||
provisioner "shell" {
|
||||
@@ -218,7 +220,7 @@ build {
|
||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} pwsh -f {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
scripts = "./provision/core/delete-duplicate-sims.rb"
|
||||
script = "./provision/core/delete-duplicate-sims.rb"
|
||||
execute_command = "source $HOME/.bash_profile; ruby {{ .Path }}"
|
||||
}
|
||||
provisioner "shell" {
|
||||
|
||||
Reference in New Issue
Block a user