-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e2562b8
commit 98e45f5
Showing
10 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 --branch 0.4.0 https://github.com/bufbuild/connect-swift | ||
WORKDIR /app/connect-swift | ||
RUN swift build -c release --product protoc-gen-connect-swift-mocks --static-swift-stdlib -Xlinker -s | ||
|
||
FROM gcr.io/distroless/cc-debian11 | ||
COPY --from=build --link /app/connect-swift/.build/release/protoc-gen-connect-swift-mocks . | ||
USER nobody | ||
ENTRYPOINT [ "/protoc-gen-connect-swift-mocks" ] |
11 changes: 11 additions & 0 deletions
11
plugins/bufbuild/connect-swift-mocks/v0.4.0/buf.plugin.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: v1 | ||
name: buf.build/bufbuild/connect-swift-mocks | ||
plugin_version: v0.4.0 | ||
source_url: https://github.com/bufbuild/connect-swift | ||
description: Generates mocks that are compatible with Connect-Swift clients. | ||
deps: | ||
- plugin: buf.build/apple/swift:v1.21.0 | ||
output_languages: | ||
- swift | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/bufbuild/connect-swift/blob/0.4.0/LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 --branch 0.4.0 https://github.com/bufbuild/connect-swift | ||
WORKDIR /app/connect-swift | ||
RUN swift build -c release --product protoc-gen-connect-swift --static-swift-stdlib -Xlinker -s | ||
|
||
FROM gcr.io/distroless/cc-debian11 | ||
COPY --from=build --link /app/connect-swift/.build/release/protoc-gen-connect-swift . | ||
USER nobody | ||
ENTRYPOINT [ "/protoc-gen-connect-swift" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: v1 | ||
name: buf.build/bufbuild/connect-swift | ||
plugin_version: v0.4.0 | ||
source_url: https://github.com/bufbuild/connect-swift | ||
description: Idiomatic gRPC & Connect RPCs for Swift. | ||
deps: | ||
- plugin: buf.build/apple/swift:v1.21.0 | ||
output_languages: | ||
- swift | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/bufbuild/connect-swift/blob/0.4.0/LICENSE |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/connect-swift-mocks/v0.4.0/eliza/plugin.sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:MSkwHDCWMXQV33zOKIr6q67UOuKIeKZIPnjj/a9aSQc= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/connect-swift-mocks/v0.4.0/petapis/plugin.sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:68KSR4dH2bVpLDSShlKFii90tJOFcGrUAue59cUUswg= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/connect-swift/v0.4.0/eliza/plugin.sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:j5lRDEmZgsrBHZBd314DmnkkQB2benXKOt7jOLYrB2s= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/connect-swift/v0.4.0/petapis/plugin.sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:WcntIMhINysZCRKRBmM80n1+8ePJDzU5EF+7+ATlAm8= |