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
|
||||
# # FIXME calculate separately to reduce false positives
|
||||
# data "external" "hash" {
|
||||
# program = ["sh", "-c", "echo \"{\\\"hash\\\":\\\"$(nix-hash ..)\\\"}\""]
|
||||
# }
|
||||
# hash of our code directory, used to trigger re-deploy
|
||||
# FIXME calculate separately to reduce false positives
|
||||
data "external" "hash" {
|
||||
program = ["sh", "-c", "echo \"{\\\"hash\\\":\\\"$(nix-hash ../../..)\\\"}\""]
|
||||
}
|
||||
|
||||
# FIXME separate
|
||||
# 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
|
||||
module "nixos-rebuild" {
|
||||
depends_on = [
|
||||
data.external.hash
|
||||
null_resource.await_ssh
|
||||
]
|
||||
source = "../tf-single-host"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue