mirror of
https://git.flexiblyrigid.au/actions/bake-action.git
synced 2025-12-06 07:48:05 +08:00
Merge pull request #247 from shink/list-targets/files
list-targets: Allow passing multi-line files
This commit is contained in:
15
test/multi-files/docker-bake.hcl
Normal file
15
test/multi-files/docker-bake.hcl
Normal 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}"]
|
||||
}
|
||||
14
test/multi-files/docker-bake.json
Normal file
14
test/multi-files/docker-bake.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"t3": [
|
||||
{
|
||||
"version": "v1",
|
||||
"arg": "v1-value",
|
||||
"tag": "v1-tag"
|
||||
},
|
||||
{
|
||||
"version": "v2",
|
||||
"arg": "v2-value",
|
||||
"tag": "v2-tag"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user