diff --git a/plugins/community/sudorandom-connect-openapi/v0.21.3/.dockerignore b/plugins/community/sudorandom-connect-openapi/v0.21.3/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/community/sudorandom-connect-openapi/v0.21.3/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/community/sudorandom-connect-openapi/v0.21.3/Dockerfile b/plugins/community/sudorandom-connect-openapi/v0.21.3/Dockerfile new file mode 100644 index 000000000..a1fa449bd --- /dev/null +++ b/plugins/community/sudorandom-connect-openapi/v0.21.3/Dockerfile @@ -0,0 +1,15 @@ +# syntax=docker/dockerfile:1.19 +FROM --platform=$BUILDPLATFORM golang:1.25.3-bookworm AS build + +ARG TARGETOS TARGETARCH +ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH + +RUN --mount=type=cache,target=/go/pkg/mod \ + go install -ldflags "-s -w" -tags remote_plugin -trimpath github.com/sudorandom/protoc-gen-connect-openapi@v0.21.3 \ + && mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-connect-openapi /go/bin/protoc-gen-connect-openapi || true + +FROM scratch +COPY --from=build --link /etc/passwd /etc/passwd +COPY --from=build --link --chown=root:root /go/bin/protoc-gen-connect-openapi . +USER nobody +ENTRYPOINT [ "/protoc-gen-connect-openapi" ] diff --git a/plugins/community/sudorandom-connect-openapi/v0.21.3/buf.plugin.yaml b/plugins/community/sudorandom-connect-openapi/v0.21.3/buf.plugin.yaml new file mode 100644 index 000000000..14a8b3090 --- /dev/null +++ b/plugins/community/sudorandom-connect-openapi/v0.21.3/buf.plugin.yaml @@ -0,0 +1,7 @@ +version: v1 +name: buf.build/community/sudorandom-connect-openapi +plugin_version: v0.21.3 +source_url: https://github.com/sudorandom/protoc-gen-connect-openapi +description: Plugin for generating OpenAPIv3 from Protobufs matching the Connect RPC interface. +spdx_license_id: MIT +license_url: https://github.com/sudorandom/protoc-gen-connect-openapi/blob/v0.21.3/LICENSE diff --git a/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.21.3/eliza/plugin.sum b/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.21.3/eliza/plugin.sum new file mode 100644 index 000000000..7dcdaef3b --- /dev/null +++ b/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.21.3/eliza/plugin.sum @@ -0,0 +1 @@ +h1:hoDQv39ijB2GCqQTnGlgVj1q8JPDB9lmQkY0WUmE+Qc= diff --git a/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.21.3/petapis/plugin.sum b/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.21.3/petapis/plugin.sum new file mode 100644 index 000000000..00e6d40b1 --- /dev/null +++ b/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.21.3/petapis/plugin.sum @@ -0,0 +1 @@ +h1:tXvqQAI2yeM8+7VlRR4LY5WOPVz6elhwUNQjC7wJpeM=