File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "permissions" : {
3+ "allow" : [
4+ " Bash(tree:*)"
5+ ]
6+ }
7+ }
Original file line number Diff line number Diff line change 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" ]
Original file line number Diff line number Diff line change 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
36proto :
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
You can’t perform that action at this time.
0 commit comments