Skip to content

Commit 3d71c2c

Browse files
committed
chore: buf build
1 parent 371e10e commit 3d71c2c

3 files changed

Lines changed: 33 additions & 1 deletion

File tree

.claude/settings.local.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(tree:*)"
5+
]
6+
}
7+
}

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM golang:1.23-alpine AS builder
2+
WORKDIR /workspace
3+
COPY . .
4+
RUN CGO_ENABLED=0 GOOS=linux go build \
5+
-ldflags="-s -w" \
6+
-o /protoc-gen-grpc-mcp-gateway \
7+
./cmd/protoc-gen-mcp-gateway
8+
9+
FROM scratch
10+
COPY --from=builder /protoc-gen-grpc-mcp-gateway /protoc-gen-grpc-mcp-gateway
11+
ENTRYPOINT ["/protoc-gen-grpc-mcp-gateway"]

Makefile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
.PHONY: proto
1+
.PHONY: proto plugin
2+
3+
PLUGIN_VERSION ?= v0.1.0
4+
PLUGIN_IMAGE = plugins.buf.build/linkbreakers-com/grpc-mcp-gateway:$(PLUGIN_VERSION)
25

36
proto:
47
buf generate
8+
9+
plugin:
10+
docker buildx build \
11+
--platform linux/amd64,linux/arm64 \
12+
-t $(PLUGIN_IMAGE) \
13+
--push .
14+
buf registry plugin push \
15+
buf.build/linkbreakers-com/grpc-mcp-gateway \
16+
--version $(PLUGIN_VERSION) \
17+
--image $(PLUGIN_IMAGE) \
18+
--visibility public

0 commit comments

Comments
 (0)