Skip to content

Commit 13b47dc

Browse files
Update sudorandom-connect-openapi (#2078)
1 parent c77e783 commit 13b47dc

File tree

5 files changed

+26
-0
lines changed

5 files changed

+26
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# syntax=docker/dockerfile:1.19
2+
FROM --platform=$BUILDPLATFORM golang:1.25.3-bookworm AS build
3+
4+
ARG TARGETOS TARGETARCH
5+
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH
6+
7+
RUN --mount=type=cache,target=/go/pkg/mod \
8+
go install -ldflags "-s -w" -tags remote_plugin -trimpath github.com/sudorandom/protoc-gen-connect-openapi@v0.21.3 \
9+
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-connect-openapi /go/bin/protoc-gen-connect-openapi || true
10+
11+
FROM scratch
12+
COPY --from=build --link /etc/passwd /etc/passwd
13+
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-connect-openapi .
14+
USER nobody
15+
ENTRYPOINT [ "/protoc-gen-connect-openapi" ]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: v1
2+
name: buf.build/community/sudorandom-connect-openapi
3+
plugin_version: v0.21.3
4+
source_url: https://github.com/sudorandom/protoc-gen-connect-openapi
5+
description: Plugin for generating OpenAPIv3 from Protobufs matching the Connect RPC interface.
6+
spdx_license_id: MIT
7+
license_url: https://github.com/sudorandom/protoc-gen-connect-openapi/blob/v0.21.3/LICENSE
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:hoDQv39ijB2GCqQTnGlgVj1q8JPDB9lmQkY0WUmE+Qc=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:tXvqQAI2yeM8+7VlRR4LY5WOPVz6elhwUNQjC7wJpeM=

0 commit comments

Comments
 (0)