Skip to content

Commit f703a85

Browse files
Add grpc-swift v1.14.0 plugin (#359)
1 parent bd20138 commit f703a85

File tree

5 files changed

+27
-0
lines changed

5 files changed

+27
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# syntax=docker/dockerfile:1.4
2+
FROM swift:5.7.3-focal AS build
3+
4+
WORKDIR /app
5+
RUN git clone --depth 1 --branch 1.14.0 https://github.com/grpc/grpc-swift --recursive
6+
WORKDIR /app/grpc-swift
7+
RUN swift build -c release --static-swift-stdlib --product protoc-gen-grpc-swift -Xlinker -s
8+
9+
FROM gcr.io/distroless/cc-debian11
10+
COPY --from=build --link /app/grpc-swift/.build/release/protoc-gen-grpc-swift .
11+
USER nobody
12+
ENTRYPOINT [ "/protoc-gen-grpc-swift" ]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: v1
2+
name: buf.build/grpc/swift
3+
plugin_version: v1.14.0
4+
source_url: https://github.com/grpc/grpc-swift
5+
description: Generates Swift client and server stubs for the gRPC framework.
6+
deps:
7+
- plugin: buf.build/apple/swift:v1.20.3
8+
output_languages:
9+
- swift
10+
spdx_license_id: Apache-2.0
11+
license_url: https://github.com/grpc/grpc-swift/blob/1.14.0/LICENSE
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:AyTBCyR7NTQf+n2zmThBq9/Nveb5Mx/QZnQ4ZvovhF4=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:nxLl9QVtjt+8+FrGOVBBSZnGQLT+GrD+NjxshOJh7xc=

0 commit comments

Comments
 (0)