-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-bake.hcl
76 lines (67 loc) · 2.63 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
group "gateway" {
targets = ["gateway"]
}
variable "GATEWAY_TAGS" {
default = "dev"
}
target "gateway" {
context = "packages/gateway"
dockerfile = "node.Dockerfile"
platforms = ["linux/amd64", "linux/arm64"]
tags = formatlist("ghcr.io/graphql-hive/gateway:%s", split(",", GATEWAY_TAGS))
annotations = [
"index:org.opencontainers.image.title=Hive Gateway",
"index:org.opencontainers.image.description=GraphQL Gateway by The Guild that can act as a Apollo Federation Gateway or a Proxy Gateway for any GraphQL service.",
"index:org.opencontainers.image.authors=The Guild",
"index:org.opencontainers.image.licenses=MIT",
"index:org.opencontainers.image.source=https://github.com/graphql-hive/gateway/tree/main/packages/gateway",
"index:org.opencontainers.image.documentation=https://the-guild.dev/graphql/hive/docs/gateway/deployment/docker"
]
}
//
group "e2e" {
targets = ["gateway_e2e", "gateway_e2e_openapi-javascript-wiki"]
}
group "e2e_bun" {
targets = ["gateway_e2e_bun", "gateway_e2e_openapi-javascript-wiki_bun"]
}
target "gateway_e2e" {
context = "packages/gateway"
dockerfile = "node.Dockerfile"
tags = ["ghcr.io/graphql-hive/gateway:e2e"]
}
target "gateway_e2e_bun" {
context = "packages/gateway"
dockerfile = "bun.Dockerfile"
tags = ["ghcr.io/graphql-hive/gateway:e2e-bun"]
}
target "gateway_e2e_openapi-javascript-wiki" {
context = "e2e/openapi-javascript-wiki"
dockerfile = "gateway.Dockerfile"
tags = ["ghcr.io/graphql-hive/gateway:e2e.openapi-javascript-wiki"]
contexts = {
"gateway_e2e": "target:gateway_e2e"
}
}
target "gateway_e2e_openapi-javascript-wiki_bun" {
context = "e2e/openapi-javascript-wiki"
dockerfile = "gateway_bun.Dockerfile"
tags = ["ghcr.io/graphql-hive/gateway:e2e.openapi-javascript-wiki-bun"]
contexts = {
"gateway_e2e_bun": "target:gateway_e2e_bun"
}
}
target "gateway_bun" {
context = "packages/gateway"
dockerfile = "bun.Dockerfile"
platforms = ["linux/amd64", "linux/arm64"]
tags = formatlist("ghcr.io/graphql-hive/gateway:%s-bun", split(",", GATEWAY_TAGS))
annotations = [
"index:org.opencontainers.image.title=Hive Gateway on Bun",
"index:org.opencontainers.image.description=GraphQL Gateway by The Guild that can act as a Apollo Federation Gateway or a Proxy Gateway for any GraphQL service.",
"index:org.opencontainers.image.authors=The Guild",
"index:org.opencontainers.image.licenses=MIT",
"index:org.opencontainers.image.source=https://github.com/graphql-hive/gateway/tree/main/packages/gateway",
"index:org.opencontainers.image.documentation=https://the-guild.dev/graphql/hive/docs/gateway/deployment/docker"
]
}