Skip to content

Commit 72d1b8e

Browse files
Upgrade grpc/swift-protobuf (#1745)
1 parent aabc991 commit 72d1b8e

File tree

5 files changed

+50
-0
lines changed

5 files changed

+50
-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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# syntax=docker/dockerfile:1.12
2+
FROM swift:6.0.3-bookworm AS build
3+
4+
WORKDIR /app
5+
RUN git clone --depth 1 --branch 1.1.0 https://github.com/grpc/grpc-swift-protobuf --recursive
6+
WORKDIR /app/grpc-swift-protobuf
7+
RUN swift build -c release --static-swift-stdlib --product protoc-gen-grpc-swift -Xlinker -s
8+
9+
FROM gcr.io/distroless/cc-debian12:latest@sha256:b7550f0b15838de14c564337eef2b804ba593ae55d81ca855421bd52f19bb480 AS base
10+
11+
FROM scratch
12+
COPY --link --from=base / /
13+
COPY --link --from=build /app/grpc-swift-protobuf/.build/release/protoc-gen-grpc-swift .
14+
USER nobody
15+
ENTRYPOINT [ "/protoc-gen-grpc-swift" ]
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
version: v1
2+
name: buf.build/grpc/swift-protobuf
3+
plugin_version: v1.1.0
4+
source_url: https://github.com/grpc/grpc-swift-protobuf
5+
integration_guide_url: https://swiftpackageindex.com/grpc/grpc-swift-protobuf/1.1.0/documentation/grpcprotobuf
6+
description: Generates Swift client and server stubs for the gRPC framework.
7+
deps:
8+
- plugin: buf.build/apple/swift:v1.29.0
9+
output_languages:
10+
- swift
11+
registry:
12+
swift:
13+
deps:
14+
- source: https://github.com/grpc/grpc-swift-protobuf.git
15+
package: grpc-swift-protobuf
16+
# https://github.com/grpc/grpc-swift-protobuf/blob/1.1.0/Package.swift#L22
17+
products: [ GRPCProtobuf ]
18+
version: 1.1.0
19+
# https://github.com/grpc/grpc-swift-protobuf/blob/1.1.0/Package.swift#L47
20+
swift_versions: [ ".v6" ]
21+
# https://github.com/grpc/grpc-swift-protobuf/blob/1.1.0/Package.swift#L123-L126
22+
platforms:
23+
macos: v15
24+
ios: v18
25+
tvos: v18
26+
watchos: v11
27+
opts:
28+
- Visibility=Public
29+
- FileNaming=PathToUnderscores
30+
spdx_license_id: Apache-2.0
31+
license_url: https://github.com/grpc/grpc-swift-protobuf/blob/1.1.0/LICENSE
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:Ouy7fwcPAu9owIHJWt8sSknVb3j9zb27aNgesYMbWrE=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:V0Dh0Px2H6zgDohE5ujCC+ugC4e6iNiOydXmi7OX0EY=

0 commit comments

Comments
 (0)