File tree 4 files changed +18
-16
lines changed
4 files changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,16 @@ FROM public.ecr.aws/bitnami/golang
2
2
3
3
RUN apt update; apt install -y make git curl bash jq awscli
4
4
5
- RUN go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v2.5 .0
6
- RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26 .0
5
+ RUN go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@v2.10 .0
6
+ RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28 .0
7
7
8
8
RUN curl -sSL \
9
- "https://github.com/bufbuild/buf/releases/download/v1.1.0 /buf-Linux-x86_64" \
9
+ "https://github.com/bufbuild/buf/releases/download/v1.3.1 /buf-Linux-x86_64" \
10
10
-o "$(go env GOPATH)/bin/buf" && \
11
11
chmod +x "$(go env GOPATH)/bin/buf"
12
12
13
- COPY . /
13
+ COPY . /action
14
14
15
- ENTRYPOINT [ "/entrypoint.sh" ]
15
+ WORKDIR /action
16
+
17
+ ENTRYPOINT [ "/action/entrypoint.sh" ]
Original file line number Diff line number Diff line change 6
6
- generate_unbound_methods=true
7
7
- disable_default_errors=true
8
8
- allow_merge=false
9
- - include_package_in_tags=false
10
9
- json_names_for_fields=false
11
- - include_package_in_tags=true
12
- - fqn_for_openapi_name =true
10
+ - openapi_naming_strategy=fqn
11
+ - allow_delete_body =true
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -euo pipefail
3
3
4
+ cd /action
5
+
4
6
echo " cloning protobuf files"
5
- bash / sparse-checkout.sh
7
+ bash sparse-checkout.sh
6
8
7
9
echo " generating swagger docs"
8
- cd / && buf beta mod update && buf generate
10
+ buf mod update && buf generate
9
11
10
12
echo " combining swagger docs into 1 file"
11
- bash / combine_swagger_docs.sh / docs
13
+ bash combine_swagger_docs.sh docs
12
14
13
15
echo " create repo/branch dir structure"
14
16
mkdir -p /_docs/${GITHUB_REPOSITORY#*/ } && mv combined.json /_docs/${GITHUB_REPOSITORY#*/ } /${GITHUB_REF##*/ } .json
15
17
16
18
17
19
echo " upload to s3"
18
- bash / upload_to_s3.sh
20
+ bash upload_to_s3.sh
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ IFS=$'\n\t'
5
5
# remove ref/head from $INPUT_PROTO_BRANCH
6
6
BRANCH_NAME=$( echo ${INPUT_PROTO_BRANCH# refs/ heads/ } )
7
7
8
- mkdir -p / proto
9
- cd / proto
8
+ mkdir proto
9
+ cd proto
10
10
git init
11
11
git config --local gc.auto 0
12
12
git config core.sparseCheckout true
@@ -15,5 +15,4 @@ cp $GITHUB_WORKSPACE/${INPUT_MODULE_LIST_FILE_PATH} .git/info/sparse-checkout
15
15
git remote add origin https://${INPUT_GIT_TOKEN} @github.com/${INPUT_PROTO_REPOSITORY}
16
16
git -c protocol.version=2 fetch --no-tags --prune --depth=1 origin ${BRANCH_NAME}
17
17
git checkout --force -B ${BRANCH_NAME} origin/${BRANCH_NAME}
18
-
19
- cd /
18
+ cd ..
You can’t perform that action at this time.
0 commit comments