feat: enable incus support in actionsdind container (#10)
Deploy / build (push) Successful in 26m54s

- add incus-images backend
- set incus-images as default backend

Reviewed-on: https://git.query.consul/unkin/packer-images/pulls/10
This commit was merged in pull request #10.
This commit is contained in:
2025-04-23 19:44:49 +10:00
parent eb1aee35c5
commit f59b0fa199
8 changed files with 57 additions and 0 deletions
+12
View File
@@ -21,6 +21,18 @@ build {
destination = "/"
}
# manage deploying incus client certficates
# this isnt super-secure, as the key ends up baked into the docker image
provisioner "shell" {
inline = [
"if [ ${var.include_incus_client_certs} = true ]; then",
" mkdir -p /root/.config/incus",
" echo '${replace(local.incus_crt, "'", "'\\''")}' > /root/.config/incus/client.crt",
" echo '${replace(local.incus_key, "'", "'\\''")}' > /root/.config/incus/client.key",
"fi"
]
}
# post-file-copy scripts
provisioner "shell" {
inline = var.scripts_post_file_copy