Skip to content

Commit 81e8292

Browse files
Update grpc/swift (#2369)
### grpc - swift: v1.27.4 → v1.27.5
1 parent bcd84a2 commit 81e8292

5 files changed

Lines changed: 44 additions & 0 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# syntax=docker/dockerfile:1.22
2+
FROM swift:6.3.0-bookworm@sha256:943bb41624442cef8ccca256f1ff7830ce25209cbad88ebfede0aaef268a8a80 AS build
3+
4+
RUN apt-get update \
5+
&& apt-get install -y libstdc++-12-dev
6+
WORKDIR /app
7+
RUN git clone --depth 1 --branch 1.27.5 https://github.com/grpc/grpc-swift --recursive
8+
WORKDIR /app/grpc-swift
9+
RUN swift build -c release --static-swift-stdlib --product protoc-gen-grpc-swift -Xlinker -s
10+
11+
FROM gcr.io/distroless/cc-debian13:latest@sha256:e1cc90d06703f5dc30ae869fbfce78fce688f21a97efecd226375233a882e62f AS base
12+
13+
FROM scratch
14+
COPY --link --from=base / /
15+
COPY --link --from=build /app/grpc-swift/.build/release/protoc-gen-grpc-swift .
16+
USER nobody
17+
ENTRYPOINT [ "/protoc-gen-grpc-swift" ]
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
version: v1
2+
name: buf.build/grpc/swift
3+
plugin_version: v1.27.5
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.36.1
8+
output_languages:
9+
- swift
10+
registry:
11+
swift:
12+
deps:
13+
- source: https://github.com/grpc/grpc-swift.git
14+
package: grpc-swift
15+
version: 1.27.5
16+
products:
17+
- GRPC
18+
opts:
19+
- Visibility=Public
20+
- FileNaming=PathToUnderscores
21+
spdx_license_id: Apache-2.0
22+
license_url: https://github.com/grpc/grpc-swift/blob/1.27.5/LICENSE
23+
integration_guide_url: https://github.com/grpc/grpc-swift#getting-grpc-swift
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:klAEUf7WFX/+TSOOUy7F75AMxFT6Xb3LNOx6aL9DYn0=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:tVvtyf7StUea61DCqt0D6mKsji3dVZxna8snGt78kEA=

0 commit comments

Comments
 (0)