deploy:修改部署
This commit is contained in:
parent
65bdd8c2fc
commit
752193e419
2
.gitignore
vendored
2
.gitignore
vendored
@ -108,3 +108,5 @@ data
|
|||||||
/.idea/modules.xml
|
/.idea/modules.xml
|
||||||
/.idea/open-renamer.iml
|
/.idea/open-renamer.iml
|
||||||
/.idea/vcs.xml
|
/.idea/vcs.xml
|
||||||
|
|
||||||
|
package-lock.json
|
4
build.sh
4
build.sh
@ -2,7 +2,7 @@
|
|||||||
base=$(cd "$(dirname "$0")";pwd)
|
base=$(cd "$(dirname "$0")";pwd)
|
||||||
cd $base
|
cd $base
|
||||||
docker run -it --rm --name buildOpenRenamer --user ${UID} -v $base/openRenamerFront:/opt/front node:lts-buster-slim bash -c "cd /opt/front && yarn --registry https://registry.npmmirror.com && yarn build"
|
docker run -it --rm --name buildOpenRenamer --user ${UID} -v $base/openRenamerFront:/opt/front node:lts-buster-slim bash -c "cd /opt/front && yarn --registry https://registry.npmmirror.com && yarn build"
|
||||||
docker run -it --rm --name buildOpenRenamer --user ${UID} -v $base/openRenamerBackend:/opt/app node:lts-buster-slim bash -c "cd /opt/app && yarn --registry https://registry.npmmirror.com && yarn global add typescript && yarn && tsc"
|
docker run -it --rm --name buildOpenRenamer --user ${UID} -v $base/openRenamerBackend:/opt/app node:lts-buster-slim bash -c "cd /opt/app && npm config set registry https://registry.npmmirror.com && npm install -g typescript && npm install && tsc"
|
||||||
|
|
||||||
rm -rf openRenamerBackend/static/*
|
rm -rf openRenamerBackend/static/*
|
||||||
touch openRenamerBackend/static/.gitkeep
|
touch openRenamerBackend/static/.gitkeep
|
||||||
@ -12,4 +12,4 @@ rm -rf openRenamerBackend/node_modules
|
|||||||
# 单平台打包并推送
|
# 单平台打包并推送
|
||||||
#docker build -t fleyx/open-renamer:$0 --push .
|
#docker build -t fleyx/open-renamer:$0 --push .
|
||||||
# 多平台打包并推送
|
# 多平台打包并推送
|
||||||
docker buildx build -t fleyx/open-renamer:$1 --platform linux/amd64,linux/arm64 --push .
|
docker buildx build -t fleyx/open-renamer:$1 --platform linux/amd64,linux/arm64 --push .
|
||||||
|
@ -1 +1 @@
|
|||||||
npm install && tsc && node dist/index.js
|
npm install && node dist/index.js
|
||||||
|
Loading…
x
Reference in New Issue
Block a user