forked from agntcy/oasf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
44 lines (38 loc) · 857 Bytes
/
Copy pathdocker-bake.hcl
File metadata and controls
44 lines (38 loc) · 857 Bytes
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
# Copyright AGNTCY Contributors (https://github.com/agntcy)
# SPDX-License-Identifier: Apache-2.0
# Documentation available at: https://docs.docker.com/build/bake/
# Docker build args
variable "IMAGE_REPO" {default = "ghcr.io/agntcy"}
variable "IMAGE_TAG" {default = "latest"}
function "get_tag" {
params = [tags, name]
result = coalescelist(tags, ["${IMAGE_REPO}/${name}:${IMAGE_TAG}"])
}
group "default" {
targets = [
"oasf-server",
]
}
target "_common" {
output = [
"type=image",
]
platforms = [
"linux/arm64",
"linux/amd64",
]
}
target "docker-metadata-action" {
tags = []
}
target "oasf-server" {
inherits = [
"_common",
"docker-metadata-action",
]
context = "./server"
contexts = {
schema = "./schema"
}
tags = get_tag(target.docker-metadata-action.tags, "${target.oasf-server.name}")
}