Skip to content

Commit

Permalink
Dont add any testing locally for images generated by worker images
Browse files Browse the repository at this point in the history
  • Loading branch information
jwmoss committed Sep 30, 2024
1 parent 3a9d0e2 commit df95562
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions gcp.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -131,20 +131,20 @@ build {
"source.googlecompute.gw-fxci-gcp-l1-2404"
]

## Every image has tests, so create the tests directory
provisioner "shell" {
execute_command = "sudo -S sh -c '{{ .Vars }} {{ .Path }}'"
inline = [
"mkdir -p /workerimages/tests",
"chmod -R 777 /workerimages/tests",
]
}
// ## Every image has tests, so create the tests directory
// provisioner "shell" {
// execute_command = "sudo -S sh -c '{{ .Vars }} {{ .Path }}'"
// inline = [
// "mkdir -p /workerimages/tests",
// "chmod -R 777 /workerimages/tests",
// ]
// }

## Every image has taskcluster, so upload the taskcluster tests fle
provisioner "file" {
source = "${path.cwd}/tests/linux/taskcluster.tests.ps1"
destination = "/workerimages/tests/taskcluster.tests.ps1"
}
// ## Every image has taskcluster, so upload the taskcluster tests fle
// provisioner "file" {
// source = "${path.cwd}/tests/linux/taskcluster.tests.ps1"
// destination = "/workerimages/tests/taskcluster.tests.ps1"
// }

provisioner "shell" {
execute_command = "sudo -S bash -c '{{ .Vars }} {{ .Path }}'"
Expand Down Expand Up @@ -202,20 +202,20 @@ build {
"source.googlecompute.gw-fxci-gcp-l1-2404-gui"
]

## Every image has tests, so create the tests directory
provisioner "shell" {
execute_command = "sudo -S sh -c '{{ .Vars }} {{ .Path }}'"
inline = [
"mkdir -p /workerimages/tests",
"chmod -R 777 /workerimages/tests",
]
}
// ## Every image has tests, so create the tests directory
// provisioner "shell" {
// execute_command = "sudo -S sh -c '{{ .Vars }} {{ .Path }}'"
// inline = [
// "mkdir -p /workerimages/tests",
// "chmod -R 777 /workerimages/tests",
// ]
// }

## Every image has taskcluster, so upload the taskcluster tests fle
provisioner "file" {
source = "${path.cwd}/tests/linux/taskcluster.tests.ps1"
destination = "/workerimages/tests/taskcluster.tests.ps1"
}
// ## Every image has taskcluster, so upload the taskcluster tests fle
// provisioner "file" {
// source = "${path.cwd}/tests/linux/taskcluster.tests.ps1"
// destination = "/workerimages/tests/taskcluster.tests.ps1"
// }

## Let's use taskcluster community shell script, the staging version
provisioner "shell" {
Expand Down

0 comments on commit df95562

Please sign in to comment.