mirror of
https://github.com/amtoaer/bili-sync.git
synced 2026-08-28 19:47:54 +08:00
ci: 先安装依赖再 copy 二进制文件,确保使用 docker 缓存
This commit is contained in:
+2
-2
@@ -4,13 +4,13 @@ ARG TARGETPLATFORM
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY ./*-bili-sync-rs ./targets/
|
|
||||||
|
|
||||||
RUN apk update && apk add --no-cache \
|
RUN apk update && apk add --no-cache \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
tzdata \
|
tzdata \
|
||||||
ffmpeg
|
ffmpeg
|
||||||
|
|
||||||
|
COPY ./*-bili-sync-rs ./targets/
|
||||||
|
|
||||||
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
|
RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
|
||||||
mv ./targets/Linux-x86_64-bili-sync-rs ./bili-sync-rs; \
|
mv ./targets/Linux-x86_64-bili-sync-rs ./bili-sync-rs; \
|
||||||
else \
|
else \
|
||||||
|
|||||||
Reference in New Issue
Block a user