-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-bake.hcl
50 lines (41 loc) · 881 Bytes
/
docker-bake.hcl
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// SPDX-FileCopyrightText: Copyright (c) 2025 Cisco and/or its affiliates.
// SPDX-License-Identifier: Apache-2.0
# Documentation available at: https://docs.docker.com/build/bake/
# Docker build args
variable "IMAGE_REPO" {default = ""}
variable "IMAGE_TAG" {default = "v0.0.0-dev"}
function "get_tag" {
params = [tags, name]
result = coalescelist(tags, ["${IMAGE_REPO}/${name}:${IMAGE_TAG}"])
}
group "default" {
targets = [
"gw",
]
}
group "data-plane" {
targets = [
"gw",
]
}
target "_common" {
output = [
"type=image",
]
platforms = [
"linux/arm64",
"linux/amd64",
]
}
target "docker-metadata-action" {
tags = []
}
target "gw" {
context = "."
dockerfile = "./data-plane/Dockerfile"
inherits = [
"_common",
"docker-metadata-action",
]
tags = get_tag(target.docker-metadata-action.tags, "${target.gw.name}")
}