diff --git a/plugins/community/sudorandom-connect-openapi/v0.27.3/.dockerignore b/plugins/community/sudorandom-connect-openapi/v0.27.3/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/community/sudorandom-connect-openapi/v0.27.3/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/community/sudorandom-connect-openapi/v0.27.3/Dockerfile b/plugins/community/sudorandom-connect-openapi/v0.27.3/Dockerfile new file mode 100644 index 000000000..db9605985 --- /dev/null +++ b/plugins/community/sudorandom-connect-openapi/v0.27.3/Dockerfile @@ -0,0 +1,15 @@ +# syntax=docker/dockerfile:1.26 +FROM --platform=$BUILDPLATFORM golang:1.27.1-trixie@sha256:433790e515d27dc6003e847e644cc0af956985cf315c1c58a3b73ee2dd305183 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.27.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.27.3/buf.plugin.yaml b/plugins/community/sudorandom-connect-openapi/v0.27.3/buf.plugin.yaml new file mode 100644 index 000000000..de3886462 --- /dev/null +++ b/plugins/community/sudorandom-connect-openapi/v0.27.3/buf.plugin.yaml @@ -0,0 +1,7 @@ +version: v1 +name: buf.build/community/sudorandom-connect-openapi +plugin_version: v0.27.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.27.3/LICENSE diff --git a/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.27.3/eliza/plugin.sum b/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.27.3/eliza/plugin.sum new file mode 100644 index 000000000..f187685b2 --- /dev/null +++ b/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.27.3/eliza/plugin.sum @@ -0,0 +1 @@ +h1:al+44JkRvgJMCYDbD6+T7OWRFZQiVWfOWvmM2/eiW0I= diff --git a/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.27.3/petapis/plugin.sum b/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.27.3/petapis/plugin.sum new file mode 100644 index 000000000..84bd5896b --- /dev/null +++ b/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.27.3/petapis/plugin.sum @@ -0,0 +1 @@ +h1:ABXbKJ+IR8HOUXOOmik2FCantRtRlEZwm9QN0Wnn1Gs=