File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -51,13 +51,13 @@ jobs:
5151 password : ${{ secrets.GITHUB_TOKEN }}
5252 - name : Download liwan binaries
5353 run : |
54- mkdir -p dist
54+ mkdir -p dist/amd64 dist/arm64
5555
5656 curl -fsSL https://github.com/explodingcamera/liwan/releases/download/${{ inputs.tag }}/liwan-x86_64-unknown-linux-musl.tar.gz \
57- | tar -xz -C dist --strip-components=1 &
57+ | tar -xz -C dist/amd64 &
5858
5959 curl -fsSL https://github.com/explodingcamera/liwan/releases/download/${{ inputs.tag }}/liwan-aarch64-unknown-linux-musl.tar.gz \
60- | tar -xz -C dist/arm64 --strip-components=1 &
60+ | tar -xz -C dist/arm64 &
6161
6262 wait
6363 - name : Build and push Docker images
Original file line number Diff line number Diff line change 11FROM gcr.io/distroless/cc-debian13:nonroot
2+ ARG TARGETARCH
23
34ENV LIWAN_CONFIG=/liwan.config.toml
45ENV LIWAN_DATA_DIR=/data
56
6- COPY --from=buildx /dist/${TARGETARCH:+amd64/}liwan /liwan
7+ USER 1000:1000
8+
9+ COPY ./dist/${TARGETARCH:+amd64/}liwan /liwan
710
811EXPOSE 9042
912STOPSIGNAL SIGINT
You can’t perform that action at this time.
0 commit comments