diff --git a/plugins/bufbuild/protoschema-bigquery/source.yaml b/plugins/bufbuild/protoschema-bigquery/source.yaml new file mode 100644 index 000000000..32e197bf2 --- /dev/null +++ b/plugins/bufbuild/protoschema-bigquery/source.yaml @@ -0,0 +1,4 @@ +source: + github: + owner: bufbuild + repository: protoschema-plugins diff --git a/plugins/bufbuild/protoschema-bigquery/v0.1.0/.dockerignore b/plugins/bufbuild/protoschema-bigquery/v0.1.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/bufbuild/protoschema-bigquery/v0.1.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/bufbuild/protoschema-bigquery/v0.1.0/Dockerfile b/plugins/bufbuild/protoschema-bigquery/v0.1.0/Dockerfile new file mode 100644 index 000000000..85ddae668 --- /dev/null +++ b/plugins/bufbuild/protoschema-bigquery/v0.1.0/Dockerfile @@ -0,0 +1,15 @@ +# syntax=docker/dockerfile:1.6 +FROM --platform=$BUILDPLATFORM golang:1.22.1-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" -trimpath github.com/bufbuild/protoschema-plugins/cmd/protoc-gen-bigquery@v0.1.0 \ + && mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-bigquery /go/bin/protoc-gen-bigquery || true + +FROM scratch +COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd +COPY --from=build --link /go/bin/protoc-gen-bigquery / +USER nobody +ENTRYPOINT [ "/protoc-gen-bigquery" ] diff --git a/plugins/bufbuild/protoschema-bigquery/v0.1.0/buf.plugin.yaml b/plugins/bufbuild/protoschema-bigquery/v0.1.0/buf.plugin.yaml new file mode 100644 index 000000000..7a5f51082 --- /dev/null +++ b/plugins/bufbuild/protoschema-bigquery/v0.1.0/buf.plugin.yaml @@ -0,0 +1,9 @@ +version: v1 +name: buf.build/bufbuild/protoschema-bigquery +plugin_version: v0.1.0 +source_url: https://github.com/bufbuild/protoschema-plugins +description: Generates a Table schema that can be used to initialize a BigQuery table. +registry: + archive: {} +spdx_license_id: Apache-2.0 +license_url: https://github.com/bufbuild/protoschema-plugins/blob/v0.1.0/LICENSE diff --git a/plugins/bufbuild/protoschema-jsonschema/source.yaml b/plugins/bufbuild/protoschema-jsonschema/source.yaml new file mode 100644 index 000000000..32e197bf2 --- /dev/null +++ b/plugins/bufbuild/protoschema-jsonschema/source.yaml @@ -0,0 +1,4 @@ +source: + github: + owner: bufbuild + repository: protoschema-plugins diff --git a/plugins/bufbuild/protoschema-jsonschema/v0.1.0/.dockerignore b/plugins/bufbuild/protoschema-jsonschema/v0.1.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/bufbuild/protoschema-jsonschema/v0.1.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/bufbuild/protoschema-jsonschema/v0.1.0/Dockerfile b/plugins/bufbuild/protoschema-jsonschema/v0.1.0/Dockerfile new file mode 100644 index 000000000..b4fa19751 --- /dev/null +++ b/plugins/bufbuild/protoschema-jsonschema/v0.1.0/Dockerfile @@ -0,0 +1,15 @@ +# syntax=docker/dockerfile:1.6 +FROM --platform=$BUILDPLATFORM golang:1.22.1-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" -trimpath github.com/bufbuild/protoschema-plugins/cmd/protoc-gen-jsonschema@v0.1.0 \ + && mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-jsonschema /go/bin/protoc-gen-jsonschema || true + +FROM scratch +COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd +COPY --from=build --link /go/bin/protoc-gen-jsonschema / +USER nobody +ENTRYPOINT [ "/protoc-gen-jsonschema" ] diff --git a/plugins/bufbuild/protoschema-jsonschema/v0.1.0/buf.plugin.yaml b/plugins/bufbuild/protoschema-jsonschema/v0.1.0/buf.plugin.yaml new file mode 100644 index 000000000..c922595eb --- /dev/null +++ b/plugins/bufbuild/protoschema-jsonschema/v0.1.0/buf.plugin.yaml @@ -0,0 +1,9 @@ +version: v1 +name: buf.build/bufbuild/protoschema-jsonschema +plugin_version: v0.1.0 +source_url: https://github.com/bufbuild/protoschema-plugins +description: Generates JSON Schema files from protobuf files. This implementation uses the latest Draft 2020-12. +registry: + archive: {} +spdx_license_id: Apache-2.0 +license_url: https://github.com/bufbuild/protoschema-plugins/blob/v0.1.0/LICENSE diff --git a/plugins/bufbuild/protoschema-pubsub/source.yaml b/plugins/bufbuild/protoschema-pubsub/source.yaml new file mode 100644 index 000000000..32e197bf2 --- /dev/null +++ b/plugins/bufbuild/protoschema-pubsub/source.yaml @@ -0,0 +1,4 @@ +source: + github: + owner: bufbuild + repository: protoschema-plugins diff --git a/plugins/bufbuild/protoschema-pubsub/v0.1.0/.dockerignore b/plugins/bufbuild/protoschema-pubsub/v0.1.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/bufbuild/protoschema-pubsub/v0.1.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/bufbuild/protoschema-pubsub/v0.1.0/Dockerfile b/plugins/bufbuild/protoschema-pubsub/v0.1.0/Dockerfile new file mode 100644 index 000000000..f1837cf7e --- /dev/null +++ b/plugins/bufbuild/protoschema-pubsub/v0.1.0/Dockerfile @@ -0,0 +1,15 @@ +# syntax=docker/dockerfile:1.6 +FROM --platform=$BUILDPLATFORM golang:1.22.1-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" -trimpath github.com/bufbuild/protoschema-plugins/cmd/protoc-gen-pubsub@v0.1.0 \ + && mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-pubsub /go/bin/protoc-gen-pubsub || true + +FROM scratch +COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd +COPY --from=build --link /go/bin/protoc-gen-pubsub / +USER nobody +ENTRYPOINT [ "/protoc-gen-pubsub" ] diff --git a/plugins/bufbuild/protoschema-pubsub/v0.1.0/buf.plugin.yaml b/plugins/bufbuild/protoschema-pubsub/v0.1.0/buf.plugin.yaml new file mode 100644 index 000000000..942e4d319 --- /dev/null +++ b/plugins/bufbuild/protoschema-pubsub/v0.1.0/buf.plugin.yaml @@ -0,0 +1,9 @@ +version: v1 +name: buf.build/bufbuild/protoschema-pubsub +plugin_version: v0.1.0 +source_url: https://github.com/bufbuild/protoschema-plugins +description: Generates a PubSub schema in the form of a single self-contained messaged normalized to proto2. +registry: + archive: {} +spdx_license_id: Apache-2.0 +license_url: https://github.com/bufbuild/protoschema-plugins/blob/v0.1.0/LICENSE diff --git a/tests/testdata/buf.build/bufbuild/protoschema-bigquery/v0.1.0/eliza/plugin.sum b/tests/testdata/buf.build/bufbuild/protoschema-bigquery/v0.1.0/eliza/plugin.sum new file mode 100644 index 000000000..307eb5f39 --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/protoschema-bigquery/v0.1.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:t7JFZIF3YIe61bG+XdEShzRZBeAgzB3EZH/M1zTNgr4= diff --git a/tests/testdata/buf.build/bufbuild/protoschema-bigquery/v0.1.0/petapis/plugin.sum b/tests/testdata/buf.build/bufbuild/protoschema-bigquery/v0.1.0/petapis/plugin.sum new file mode 100644 index 000000000..133fbc9c5 --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/protoschema-bigquery/v0.1.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:gsob0/+VzH2ItGxqwJzgz/rBMOU55KVfWABrKMNbLJ8= diff --git a/tests/testdata/buf.build/bufbuild/protoschema-jsonschema/v0.1.0/eliza/plugin.sum b/tests/testdata/buf.build/bufbuild/protoschema-jsonschema/v0.1.0/eliza/plugin.sum new file mode 100644 index 000000000..5268c9ba0 --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/protoschema-jsonschema/v0.1.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:YmY236iTtcSzglNYUV9bo5BaPVGvQkDaGtYodCw9PXE= diff --git a/tests/testdata/buf.build/bufbuild/protoschema-jsonschema/v0.1.0/petapis/plugin.sum b/tests/testdata/buf.build/bufbuild/protoschema-jsonschema/v0.1.0/petapis/plugin.sum new file mode 100644 index 000000000..8ea1c2560 --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/protoschema-jsonschema/v0.1.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:crrRlsC5HO9JEMtPx8+pjaqyeGNHL4NwsX8ByGm8yzo= diff --git a/tests/testdata/buf.build/bufbuild/protoschema-pubsub/v0.1.0/eliza/plugin.sum b/tests/testdata/buf.build/bufbuild/protoschema-pubsub/v0.1.0/eliza/plugin.sum new file mode 100644 index 000000000..37536f56d --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/protoschema-pubsub/v0.1.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:L9RwJyIIdZ320achAuRucuQ51mW2AbpwT1ZWdddyURM= diff --git a/tests/testdata/buf.build/bufbuild/protoschema-pubsub/v0.1.0/petapis/plugin.sum b/tests/testdata/buf.build/bufbuild/protoschema-pubsub/v0.1.0/petapis/plugin.sum new file mode 100644 index 000000000..c382373e3 --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/protoschema-pubsub/v0.1.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:J59Nbi1l4fBtI4C5YgnyOH4NLcxRZqbvJBKw/EQq0u4=