forked from chainguard-images/images
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
33 lines (25 loc) · 757 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
variable "target_repository" {
description = "The docker repo into which the image and attestations should be published."
}
module "latest" {
source = "../../tflib/publisher"
name = basename(path.module)
target_repository = var.target_repository
config = file("${path.module}/configs/latest.apko.yaml")
}
module "version-tags" {
source = "../../tflib/version-tags"
package = "aspnet-7-runtime"
config = module.latest.config
}
module "test-latest" {
source = "./tests"
digest = module.latest.image_ref
}
module "tagger" {
source = "../../tflib/tagger"
depends_on = [module.test-latest]
tags = merge(
{ for t in toset(concat(["latest"], module.version-tags.tag_list)) : t => module.latest.image_ref },
)
}