diff --git a/plugins/community/google-gnostic-openapi/source.yaml b/plugins/community/google-gnostic-openapi/source.yaml new file mode 100644 index 000000000..31b169ef0 --- /dev/null +++ b/plugins/community/google-gnostic-openapi/source.yaml @@ -0,0 +1,4 @@ +source: + github: + owner: google + repository: gnostic diff --git a/plugins/community/google-gnostic-openapi/v0.7.0/.dockerignore b/plugins/community/google-gnostic-openapi/v0.7.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/community/google-gnostic-openapi/v0.7.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/community/google-gnostic-openapi/v0.7.0/Dockerfile b/plugins/community/google-gnostic-openapi/v0.7.0/Dockerfile new file mode 100644 index 000000000..ca712065e --- /dev/null +++ b/plugins/community/google-gnostic-openapi/v0.7.0/Dockerfile @@ -0,0 +1,11 @@ +# syntax=docker/dockerfile:1.6 +FROM golang:1.21.2-bullseye AS build +RUN --mount=type=cache,target=/go/pkg/mod \ + CGO_ENABLED=0 \ + go install -ldflags="-s -w" -trimpath github.com/google/gnostic/cmd/protoc-gen-openapi@v0.7.0 + +FROM scratch +COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd +COPY --from=build --link --chown=root:root /go/bin/protoc-gen-openapi . +USER nobody +ENTRYPOINT [ "/protoc-gen-openapi" ] diff --git a/plugins/community/google-gnostic-openapi/v0.7.0/buf.plugin.yaml b/plugins/community/google-gnostic-openapi/v0.7.0/buf.plugin.yaml new file mode 100644 index 000000000..115d94118 --- /dev/null +++ b/plugins/community/google-gnostic-openapi/v0.7.0/buf.plugin.yaml @@ -0,0 +1,9 @@ +version: v1 +name: buf.build/community/google-gnostic-openapi +plugin_version: v0.7.0 +source_url: https://github.com/google/gnostic +description: Generates an OpenAPI description for a REST API that corresponds to a Protocol Buffer service. +output_languages: + - go +spdx_license_id: Apache-2.0 +license_url: https://github.com/google/gnostic/blob/v0.7.0/LICENSE diff --git a/tests/testdata/buf.build/community/google-gnostic-openapi/v0.7.0/eliza/plugin.sum b/tests/testdata/buf.build/community/google-gnostic-openapi/v0.7.0/eliza/plugin.sum new file mode 100644 index 000000000..a9b76cb45 --- /dev/null +++ b/tests/testdata/buf.build/community/google-gnostic-openapi/v0.7.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:P12cx29lB4V/YBo1t3C3zLK3sXUkukSW/pODhtMPw/0= diff --git a/tests/testdata/buf.build/community/google-gnostic-openapi/v0.7.0/petapis/plugin.sum b/tests/testdata/buf.build/community/google-gnostic-openapi/v0.7.0/petapis/plugin.sum new file mode 100644 index 000000000..a9b76cb45 --- /dev/null +++ b/tests/testdata/buf.build/community/google-gnostic-openapi/v0.7.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:P12cx29lB4V/YBo1t3C3zLK3sXUkukSW/pODhtMPw/0=