mirror of
https://github.com/cloudreve/cloudreve.git
synced 2025-11-02 20:14:02 +08:00
fix: zip assets folder path error
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,6 +8,7 @@ cloudreve
|
|||||||
*.db
|
*.db
|
||||||
*.bin
|
*.bin
|
||||||
/release/
|
/release/
|
||||||
|
assets.zip
|
||||||
|
|
||||||
# Test binary, build with `go test -c`
|
# Test binary, build with `go test -c`
|
||||||
*.test
|
*.test
|
||||||
|
|||||||
@ -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 >assets.zip
|
RUN zip -r - assets/build >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'"
|
||||||
|
|||||||
Reference in New Issue
Block a user