diff --git a/.github/renovate.json b/.github/renovate.json index 0cbb51fb..6d80a759 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -139,6 +139,12 @@ "depNameTemplate": "ckaznocha/protoc-gen-lint", "datasourceTemplate": "github-releases" }, + { + "fileMatch": ["^deps\\.list$"], + "matchStrings": ["PROTOC_GEN_NANOPB_VERSION=(?.*?)\\n"], + "depNameTemplate": "nanopb", + "datasourceTemplate": "pypi" + }, { "fileMatch": ["^deps\\.list$"], "matchStrings": ["PROTOC_GEN_RUST_VERSION=(?.*?)\\n"], diff --git a/Dockerfile b/Dockerfile index 93184170..842ad7ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -423,6 +423,7 @@ RUN find /out -name "*.a" -delete -or -name "*.la" -delete FROM alpine:${ALPINE_IMAGE_VERSION} LABEL maintainer="Roman Volosatovs " +ARG PROTOC_GEN_NANOPB_VERSION RUN apk add --no-cache \ bash \ grpc \ @@ -436,7 +437,7 @@ COPY --from=upx /out/ / COPY --from=protoc_gen_ts /out/ / COPY --from=protoc_gen_dart /out/ / COPY --from=protoc_gen_dart /runtime/ / -RUN python3 -m ensurepip && pip3 install --no-cache nanopb +RUN python3 -m ensurepip && pip3 install --no-cache nanopb==${PROTOC_GEN_NANOPB_VERSION} RUN ln -s /usr/bin/grpc_cpp_plugin /usr/bin/protoc-gen-grpc-cpp RUN ln -s /usr/bin/grpc_csharp_plugin /usr/bin/protoc-gen-grpc-csharp RUN ln -s /usr/bin/grpc_node_plugin /usr/bin/protoc-gen-grpc-js