Allow passing multi-line files

Signed-off-by: Yuanhao Ji <jiyuanhao@apache.org>
This commit is contained in:
Yuanhao Ji
2024-09-13 10:49:20 +08:00
parent cdf7e1c5cb
commit d5f33222b6
4 changed files with 54 additions and 5 deletions

View File

@@ -0,0 +1,15 @@
group "default" {
targets = ["t3"]
}
target "t3" {
name = "${item.tag}"
matrix = {
item = t3
}
args = {
VERSION = "${item.version}"
DUMMY_ARG = "${item.arg}"
}
tags = ["${item.tag}"]
}

View File

@@ -0,0 +1,14 @@
{
"t3": [
{
"version": "v1",
"arg": "v1-value",
"tag": "v1-tag"
},
{
"version": "v2",
"arg": "v2-value",
"tag": "v2-tag"
}
]
}