Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency upx/upx to v4.0.2 #157

Merged
merged 3 commits into from
Jan 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@
"fileMatch": ["^deps\\.list$"],
"matchStrings": ["UPX_VERSION=(?<currentValue>.*?)\\n"],
"depNameTemplate": "upx/upx",
"datasourceTemplate": "github-releases"
"datasourceTemplate": "github-releases",
"extractVersionTemplate": "^v(?<version>.*)$"
},
{
"fileMatch": ["^deps\\.list$"],
Expand Down
13 changes: 4 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,8 @@ RUN install -D /dart-protobuf/protoc_plugin/protoc_plugin /out/usr/bin/protoc-ge
FROM --platform=$BUILDPLATFORM alpine_host as upx
RUN mkdir -p /upx
ARG BUILDARCH BUILDOS UPX_VERSION
RUN if ! [ "${TARGETARCH}" = "arm64" ]; then curl -sSL https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-${BUILDARCH}_${BUILDOS}.tar.xz | tar xJ --strip 1 -C /upx; fi
RUN if ! [ "${TARGETARCH}" = "arm64" ]; then install -D /upx/upx /usr/local/bin/upx; fi
RUN curl -sSL https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-${BUILDARCH}_${BUILDOS}.tar.xz | tar xJ --strip 1 -C /upx
RUN install -D /upx/upx /usr/local/bin/upx
COPY --from=googleapis /out/ /out/
COPY --from=grpc_gateway /out/ /out/
COPY --from=grpc_rust /out/ /out/
Expand All @@ -411,14 +411,9 @@ COPY --from=protoc_gen_rust /out/ /out/
COPY --from=protoc_gen_scala /out/ /out/
COPY --from=protoc_gen_validate /out/ /out/
ARG TARGETARCH
RUN <<EOF
if ! [ "${TARGETARCH}" = "arm64" ]; then
upx --lzma $(find /out/usr/bin/ -type f \
RUN upx --lzma $(find /out/usr/bin/ -type f \
-name 'protoc-gen-*' -or \
-name 'grpc_*' \
)
fi
EOF
-name 'grpc_*')
RUN find /out -name "*.a" -delete -or -name "*.la" -delete


Expand Down
2 changes: 1 addition & 1 deletion deps.list
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ PROTOC_GEN_VALIDATE_VERSION=v0.9.1
RUST_IMAGE_VERSION=1.67.0-alpine3.17
SCALA_SBT_IMAGE_VERSION=graalvm-ce-21.3.0-java17_1.8.0_3.2.1
SWIFT_IMAGE_VERSION=5.7-focal
UPX_VERSION=4.0.1
UPX_VERSION=4.0.2
XX_IMAGE_VERSION=1.2.0