mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
add empty assets.zip for placeholder
This commit is contained in:
@@ -14,7 +14,7 @@ RUN yarn run build && rm -rf build/*.map
|
|||||||
|
|
||||||
# build backend
|
# build backend
|
||||||
WORKDIR /cloudreve_builder/Cloudreve
|
WORKDIR /cloudreve_builder/Cloudreve
|
||||||
RUN zip -r assets.zip assets
|
RUN zip -r - assets >assets.zip
|
||||||
RUN tag_name=$(git describe --tags) \
|
RUN tag_name=$(git describe --tags) \
|
||||||
&& export COMMIT_SHA=$(git rev-parse --short HEAD) \
|
&& export COMMIT_SHA=$(git rev-parse --short HEAD) \
|
||||||
&& go build -a -o cloudreve -ldflags " -X 'github.com/HFO4/cloudreve/pkg/conf.BackendVersion=$tag_name' -X 'github.com/HFO4/cloudreve/pkg/conf.LastCommit=$COMMIT_SHA'"
|
&& go build -a -o cloudreve -ldflags " -X 'github.com/HFO4/cloudreve/pkg/conf.BackendVersion=$tag_name' -X 'github.com/HFO4/cloudreve/pkg/conf.LastCommit=$COMMIT_SHA'"
|
||||||
|
|||||||
0
assets.zip
Normal file
0
assets.zip
Normal file
Reference in New Issue
Block a user