Skip to content

Commit 3959079

Browse files
authored
Add community/sudorandom-connect-openapi v0.19.1 (#1948)
Fix #1242
1 parent 727ff3c commit 3959079

File tree

6 files changed

+30
-0
lines changed

6 files changed

+30
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source:
2+
github:
3+
owner: sudorandom
4+
repository: protoc-gen-connect-openapi
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.17
2+
FROM --platform=$BUILDPLATFORM golang:1.24.6-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/[email protected] \
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.19.1
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.19.1/LICENSE
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:1rR4VFIxpSsxmiSaRJmu3EIUbbrJIjthlir6evFUKFM=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:pJefAfxuKwc/lb2lKsfzBrN16FThe0E8iP73roGRwlI=

0 commit comments

Comments
 (0)