From f703a8552637d7b3e51e0cc38b576a60461a688c Mon Sep 17 00:00:00 2001 From: "app-token-plugins[bot]" <116026991+app-token-plugins[bot]@users.noreply.github.com> Date: Wed, 8 Feb 2023 21:27:49 -0600 Subject: [PATCH] Add grpc-swift v1.14.0 plugin (#359) --- plugins/grpc/swift/v1.14.0/.dockerignore | 2 ++ plugins/grpc/swift/v1.14.0/Dockerfile | 12 ++++++++++++ plugins/grpc/swift/v1.14.0/buf.plugin.yaml | 11 +++++++++++ .../buf.build/grpc/swift/v1.14.0/eliza/plugin.sum | 1 + .../buf.build/grpc/swift/v1.14.0/petapis/plugin.sum | 1 + 5 files changed, 27 insertions(+) create mode 100644 plugins/grpc/swift/v1.14.0/.dockerignore create mode 100644 plugins/grpc/swift/v1.14.0/Dockerfile create mode 100644 plugins/grpc/swift/v1.14.0/buf.plugin.yaml create mode 100644 tests/testdata/buf.build/grpc/swift/v1.14.0/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/grpc/swift/v1.14.0/petapis/plugin.sum diff --git a/plugins/grpc/swift/v1.14.0/.dockerignore b/plugins/grpc/swift/v1.14.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/grpc/swift/v1.14.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/grpc/swift/v1.14.0/Dockerfile b/plugins/grpc/swift/v1.14.0/Dockerfile new file mode 100644 index 000000000..12e4bf7f3 --- /dev/null +++ b/plugins/grpc/swift/v1.14.0/Dockerfile @@ -0,0 +1,12 @@ +# syntax=docker/dockerfile:1.4 +FROM swift:5.7.3-focal AS build + +WORKDIR /app +RUN git clone --depth 1 --branch 1.14.0 https://github.com/grpc/grpc-swift --recursive +WORKDIR /app/grpc-swift +RUN swift build -c release --static-swift-stdlib --product protoc-gen-grpc-swift -Xlinker -s + +FROM gcr.io/distroless/cc-debian11 +COPY --from=build --link /app/grpc-swift/.build/release/protoc-gen-grpc-swift . +USER nobody +ENTRYPOINT [ "/protoc-gen-grpc-swift" ] diff --git a/plugins/grpc/swift/v1.14.0/buf.plugin.yaml b/plugins/grpc/swift/v1.14.0/buf.plugin.yaml new file mode 100644 index 000000000..ba739f857 --- /dev/null +++ b/plugins/grpc/swift/v1.14.0/buf.plugin.yaml @@ -0,0 +1,11 @@ +version: v1 +name: buf.build/grpc/swift +plugin_version: v1.14.0 +source_url: https://github.com/grpc/grpc-swift +description: Generates Swift client and server stubs for the gRPC framework. +deps: + - plugin: buf.build/apple/swift:v1.20.3 +output_languages: + - swift +spdx_license_id: Apache-2.0 +license_url: https://github.com/grpc/grpc-swift/blob/1.14.0/LICENSE diff --git a/tests/testdata/buf.build/grpc/swift/v1.14.0/eliza/plugin.sum b/tests/testdata/buf.build/grpc/swift/v1.14.0/eliza/plugin.sum new file mode 100644 index 000000000..ea34c2891 --- /dev/null +++ b/tests/testdata/buf.build/grpc/swift/v1.14.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:AyTBCyR7NTQf+n2zmThBq9/Nveb5Mx/QZnQ4ZvovhF4= diff --git a/tests/testdata/buf.build/grpc/swift/v1.14.0/petapis/plugin.sum b/tests/testdata/buf.build/grpc/swift/v1.14.0/petapis/plugin.sum new file mode 100644 index 000000000..ced62ccb6 --- /dev/null +++ b/tests/testdata/buf.build/grpc/swift/v1.14.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:nxLl9QVtjt+8+FrGOVBBSZnGQLT+GrD+NjxshOJh7xc=