diff --git a/plugins/grpc-ecosystem/openapiv2/source.yaml b/plugins/grpc-ecosystem/openapiv2/source.yaml new file mode 100644 index 000000000..e28f7df43 --- /dev/null +++ b/plugins/grpc-ecosystem/openapiv2/source.yaml @@ -0,0 +1,4 @@ +source: + github: + owner: grpc-ecosystem + repository: grpc-gateway diff --git a/plugins/grpc-ecosystem/openapiv2/v2.15.0/.dockerignore b/plugins/grpc-ecosystem/openapiv2/v2.15.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/grpc-ecosystem/openapiv2/v2.15.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/grpc-ecosystem/openapiv2/v2.15.0/Dockerfile b/plugins/grpc-ecosystem/openapiv2/v2.15.0/Dockerfile new file mode 100644 index 000000000..86d846743 --- /dev/null +++ b/plugins/grpc-ecosystem/openapiv2/v2.15.0/Dockerfile @@ -0,0 +1,11 @@ +# syntax=docker/dockerfile:1.4 +FROM golang:1.19.4-bullseye AS build +RUN --mount=type=cache,target=/go/pkg/mod \ + CGO_ENABLED=0 \ + go install -ldflags="-s -w" -trimpath github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v2.15.0 + +FROM scratch +COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd +COPY --from=build --link /go/bin/protoc-gen-openapiv2 / +USER nobody +ENTRYPOINT [ "/protoc-gen-openapiv2" ] diff --git a/plugins/grpc-ecosystem/openapiv2/v2.15.0/buf.plugin.yaml b/plugins/grpc-ecosystem/openapiv2/v2.15.0/buf.plugin.yaml new file mode 100644 index 000000000..cb0ff96bd --- /dev/null +++ b/plugins/grpc-ecosystem/openapiv2/v2.15.0/buf.plugin.yaml @@ -0,0 +1,7 @@ +version: v1 +name: buf.build/grpc-ecosystem/openapiv2 +plugin_version: v2.15.0 +source_url: https://github.com/grpc-ecosystem/grpc-gateway +description: Generates OpenAPI definitions for Protobuf services. +spdx_license_id: BSD-3-Clause +license_url: https://github.com/grpc-ecosystem/grpc-gateway/blob/v2.15.0/LICENSE.txt diff --git a/tests/testdata/buf.build/grpc-ecosystem/openapiv2/v2.15.0/eliza/plugin.sum b/tests/testdata/buf.build/grpc-ecosystem/openapiv2/v2.15.0/eliza/plugin.sum new file mode 100644 index 000000000..887c0b36c --- /dev/null +++ b/tests/testdata/buf.build/grpc-ecosystem/openapiv2/v2.15.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:UttB5XSQcdk/XyJbzkI9uqHCv5StxSjK0u5mrWJweoU= diff --git a/tests/testdata/buf.build/grpc-ecosystem/openapiv2/v2.15.0/petapis/plugin.sum b/tests/testdata/buf.build/grpc-ecosystem/openapiv2/v2.15.0/petapis/plugin.sum new file mode 100644 index 000000000..7f1a37f19 --- /dev/null +++ b/tests/testdata/buf.build/grpc-ecosystem/openapiv2/v2.15.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:kbnot+zVGjxK+SAIaEjtKgvlHNA+4RVmP6bjvSYh9JA=