trigger update by codebase hash

Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
Kiara Grouwstra 2025-10-20 17:28:57 +02:00
parent 4a081113b3
commit d1a8dbf13c
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -33,11 +33,11 @@ provider "proxmox" {
} }
} }
# # hash of our code directory, used to trigger re-deploy # hash of our code directory, used to trigger re-deploy
# # FIXME calculate separately to reduce false positives # FIXME calculate separately to reduce false positives
# data "external" "hash" { data "external" "hash" {
# program = ["sh", "-c", "echo \"{\\\"hash\\\":\\\"$(nix-hash ..)\\\"}\""] program = ["sh", "-c", "echo \"{\\\"hash\\\":\\\"$(nix-hash ../../..)\\\"}\""]
# } }
# FIXME separate # FIXME separate
# FIXME (un)stream # FIXME (un)stream
@ -175,6 +175,7 @@ resource "null_resource" "await_ssh" {
# FIXME expose (and handle thru) [`exec`](https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu/{vmid}/agent/exec) endpoint in proxmox TF provider? wait, what command would i use it for?: https://github.com/bpg/terraform-provider-proxmox/issues/1576 # FIXME expose (and handle thru) [`exec`](https://pve.proxmox.com/pve-docs/api-viewer/#/nodes/{node}/qemu/{vmid}/agent/exec) endpoint in proxmox TF provider? wait, what command would i use it for?: https://github.com/bpg/terraform-provider-proxmox/issues/1576
module "nixos-rebuild" { module "nixos-rebuild" {
depends_on = [ depends_on = [
data.external.hash
null_resource.await_ssh null_resource.await_ssh
] ]
source = "../tf-single-host" source = "../tf-single-host"