fix: zip assets folder path error
This commit is contained in:
parent
23642d7597
commit
9ab643a71b
3 changed files with 3 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -8,6 +8,7 @@ cloudreve
|
|||
*.db
|
||||
*.bin
|
||||
/release/
|
||||
assets.zip
|
||||
|
||||
# Test binary, build with `go test -c`
|
||||
*.test
|
||||
|
|
|
@ -14,7 +14,7 @@ RUN yarn run build && rm -rf build/*.map
|
|||
|
||||
# build backend
|
||||
WORKDIR /cloudreve_builder/Cloudreve
|
||||
RUN zip -r - assets >assets.zip
|
||||
RUN zip -r - assets/build >assets.zip
|
||||
RUN tag_name=$(git describe --tags) \
|
||||
&& 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'"
|
||||
|
|
2
build.sh
2
build.sh
|
@ -32,7 +32,7 @@ buildAssets() {
|
|||
cd build
|
||||
rm -rf *.map
|
||||
cd $REPO
|
||||
zip -r - assets >assets.zip
|
||||
zip -r - assets/build >assets.zip
|
||||
}
|
||||
|
||||
buildBinary() {
|
||||
|
|
Loading…
Add table
Reference in a new issue