Remove dated builds

This commit is contained in:
Greyscale 2025-01-16 14:20:22 +01:00
parent bc6e4baca8
commit bfb1f46683
Signed by: grey
GPG key ID: DDB392AE64B32D89

View file

@ -6,11 +6,9 @@ locals {
source_file_hashes = [for f in local.source_files : filesha1("${var.build.context}/${f}")]
image_context_hash = sha1(join("", local.source_file_hashes))
image_context_hash_short = substr(local.image_context_hash, 0, 8)
image_build_date = formatdate("YYMMDD", plantimestamp())
tags = compact([
var.image,
"${local.image_name}:hash-${local.image_context_hash_short}",
"${local.image_name}:built-${local.image_build_date}",
])
}
resource "random_pet" "build" {