forked from fediversity/fediversity
trigger update by codebase hash
Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
parent
ab67a6d637
commit
aea15084fd
1 changed files with 6 additions and 5 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue