Remove dated builds
This commit is contained in:
parent
bc6e4baca8
commit
bfb1f46683
1 changed files with 0 additions and 2 deletions
|
@ -6,11 +6,9 @@ locals {
|
||||||
source_file_hashes = [for f in local.source_files : filesha1("${var.build.context}/${f}")]
|
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 = sha1(join("", local.source_file_hashes))
|
||||||
image_context_hash_short = substr(local.image_context_hash, 0, 8)
|
image_context_hash_short = substr(local.image_context_hash, 0, 8)
|
||||||
image_build_date = formatdate("YYMMDD", plantimestamp())
|
|
||||||
tags = compact([
|
tags = compact([
|
||||||
var.image,
|
var.image,
|
||||||
"${local.image_name}:hash-${local.image_context_hash_short}",
|
"${local.image_name}:hash-${local.image_context_hash_short}",
|
||||||
"${local.image_name}:built-${local.image_build_date}",
|
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
resource "random_pet" "build" {
|
resource "random_pet" "build" {
|
||||||
|
|
Loading…
Reference in a new issue