From cb6790332c253665235bd590a17807f6c2c95765 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Wed, 26 Jun 2024 14:10:39 +0200 Subject: [PATCH] Use variable for image_tag (#85) --- private_demo/main.tf | 2 +- private_demo/variables.tf | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 private_demo/variables.tf diff --git a/private_demo/main.tf b/private_demo/main.tf index bd81951..be2bf6b 100644 --- a/private_demo/main.tf +++ b/private_demo/main.tf @@ -34,7 +34,7 @@ module "webservice_private_demo" { service_name = "Private-Demo" container_image = "ghcr.io/home-assistant/private-demo" - container_version = "2023.3.1" + container_version = var.image_tag port = 8123 cloudflare_proxy = false diff --git a/private_demo/variables.tf b/private_demo/variables.tf new file mode 100644 index 0000000..c0821f2 --- /dev/null +++ b/private_demo/variables.tf @@ -0,0 +1,4 @@ +variable "image_tag" { + description = "Image tag for the conatiner" + type = string +}