ci: 先安装依赖再 copy 二进制文件,确保使用 docker 缓存

This commit is contained in:
amtoaer
2024-05-02 00:45:47 +08:00
parent 10ccb47790
commit d3bfca42f6

View File

@@ -4,13 +4,13 @@ ARG TARGETPLATFORM
WORKDIR /app
COPY ./*-bili-sync-rs ./targets/
RUN apk update && apk add --no-cache \
ca-certificates \
tzdata \
ffmpeg
COPY ./*-bili-sync-rs ./targets/
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
mv ./targets/Linux-x86_64-bili-sync-rs ./bili-sync-rs; \
else \