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 }}"
|
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} {{ .Path }}"
|
||||||
}
|
}
|
||||||
provisioner "shell" {
|
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 }}"
|
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} pwsh -f {{ .Path }}"
|
||||||
}
|
}
|
||||||
provisioner "shell" {
|
provisioner "shell" {
|
||||||
|
|||||||
@@ -64,11 +64,13 @@ build {
|
|||||||
"source.veertu-anka-vm-clone.template"
|
"source.veertu-anka-vm-clone.template"
|
||||||
]
|
]
|
||||||
provisioner "shell" {
|
provisioner "shell" {
|
||||||
inline = "mkdir ~/image-generation"
|
inline = [
|
||||||
|
"mkdir ~/image-generation"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
provisioner "file" {
|
provisioner "file" {
|
||||||
destination = "~/image-generation/"
|
destination = "image-generation/"
|
||||||
source = [
|
sources = [
|
||||||
"./provision/assets",
|
"./provision/assets",
|
||||||
"./tests",
|
"./tests",
|
||||||
"./software-report",
|
"./software-report",
|
||||||
@@ -98,7 +100,7 @@ build {
|
|||||||
}
|
}
|
||||||
provisioner "file" {
|
provisioner "file" {
|
||||||
destination = "bootstrap"
|
destination = "bootstrap"
|
||||||
source = "./provision/bootstrap-provisioner"
|
source = "./provision/bootstrap-provisioner/"
|
||||||
}
|
}
|
||||||
provisioner "file" {
|
provisioner "file" {
|
||||||
destination = "image-generation/toolset.json"
|
destination = "image-generation/toolset.json"
|
||||||
@@ -135,7 +137,7 @@ build {
|
|||||||
}
|
}
|
||||||
provisioner "shell" {
|
provisioner "shell" {
|
||||||
script = "./provision/core/reboot.sh"
|
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
|
expect_disconnect = true
|
||||||
}
|
}
|
||||||
provisioner "shell" {
|
provisioner "shell" {
|
||||||
@@ -218,7 +220,7 @@ build {
|
|||||||
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} pwsh -f {{ .Path }}"
|
execute_command = "chmod +x {{ .Path }}; source $HOME/.bash_profile; {{ .Vars }} pwsh -f {{ .Path }}"
|
||||||
}
|
}
|
||||||
provisioner "shell" {
|
provisioner "shell" {
|
||||||
scripts = "./provision/core/delete-duplicate-sims.rb"
|
script = "./provision/core/delete-duplicate-sims.rb"
|
||||||
execute_command = "source $HOME/.bash_profile; ruby {{ .Path }}"
|
execute_command = "source $HOME/.bash_profile; ruby {{ .Path }}"
|
||||||
}
|
}
|
||||||
provisioner "shell" {
|
provisioner "shell" {
|
||||||
|
|||||||
Reference in New Issue
Block a user