Skip to content

Commit

Permalink
Add grpc-swift v1.14.0 plugin (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
app-token-plugins[bot] authored Feb 9, 2023
1 parent bd20138 commit f703a85
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/grpc/swift/v1.14.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
12 changes: 12 additions & 0 deletions plugins/grpc/swift/v1.14.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]
11 changes: 11 additions & 0 deletions plugins/grpc/swift/v1.14.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:AyTBCyR7NTQf+n2zmThBq9/Nveb5Mx/QZnQ4ZvovhF4=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:nxLl9QVtjt+8+FrGOVBBSZnGQLT+GrD+NjxshOJh7xc=

0 comments on commit f703a85

Please sign in to comment.