-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-bake.hcl
More file actions
61 lines (56 loc) · 1.88 KB
/
Copy pathdocker-bake.hcl
File metadata and controls
61 lines (56 loc) · 1.88 KB
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
variable "VERSION" {
type = string
description = "MCP server version"
default = "dev"
}
variable "COMMIT_SHA" {
type = string
description = "Commit hash for build"
default = "unknown"
}
group "default" {
targets = ["dev"]
}
target "dev" {
context = "."
dockerfile = "Dockerfile"
tags = ["vadimklimov/cpi-mcp-server:dev"]
args = {
VERSION = VERSION
}
}
target "snapshot" {
inherits = ["dev"]
tags = ["vadimklimov/cpi-mcp-server:${VERSION}-snapshot"]
platforms = [
"linux/amd64",
"linux/arm64"
]
labels = {
"org.opencontainers.image.title" = "CPI MCP server"
"org.opencontainers.image.description" = "MCP server for SAP Cloud Integration"
"org.opencontainers.image.vendor" = "Vadim Klimov"
"org.opencontainers.image.authors" = "Vadim Klimov"
"org.opencontainers.image.licenses" = "MIT"
"org.opencontainers.image.url" = "https://github.com/vadimklimov/cpi-mcp-server"
"org.opencontainers.image.documentation" = "https://github.com/vadimklimov/cpi-mcp-server"
"org.opencontainers.image.source" = "https://github.com/vadimklimov/cpi-mcp-server"
"org.opencontainers.image.version" = "${VERSION}-snapshot"
"org.opencontainers.image.revision" = "${COMMIT_SHA}"
"org.opencontainers.image.created" = "${timestamp()}"
"org.opencontainers.image.ref.name" = "docker.io/vadimklimov/cpi-mcp-server:${VERSION}-snapshot"
"org.opencontainers.image.base.name" = "docker.io/library/alpine:3.22"
}
}
target "release" {
inherits = ["snapshot"]
tags = [
"vadimklimov/cpi-mcp-server:${VERSION}",
"vadimklimov/cpi-mcp-server:latest",
]
output = ["type=registry"]
labels = {
"org.opencontainers.image.version" = "${VERSION}"
"org.opencontainers.image.ref.name" = "docker.io/vadimklimov/cpi-mcp-server:${VERSION}"
}
}