feat🔫: 自动部署脚本
This commit is contained in:
parent
e7283c41ca
commit
a22dc5cafe
16
.dockerignore
Normal file
16
.dockerignore
Normal file
|
@ -0,0 +1,16 @@
|
|||
# ide
|
||||
.idea
|
||||
|
||||
.vscode
|
||||
|
||||
# git
|
||||
.git
|
||||
|
||||
.gitignore
|
||||
|
||||
script
|
||||
|
||||
README.md
|
||||
|
||||
docker-compose.yaml
|
||||
Dockerfile
|
8
scripts/build.ps1
Normal file
8
scripts/build.ps1
Normal file
|
@ -0,0 +1,8 @@
|
|||
docker build . -t registry.cn-hangzhou.aliyuncs.com/fadinglight/bill-react:dev
|
||||
|
||||
docker push registry.cn-hangzhou.aliyuncs.com/fadinglight/bill-react:dev
|
||||
|
||||
ssh aliyun "cd /root/docker/bill-sys/;
|
||||
docker compose down;
|
||||
docker pull registry.cn-hangzhou.aliyuncs.com/fadinglight/bill-go:dev;
|
||||
docker compose up -d"
|
8
scripts/build.sh
Normal file
8
scripts/build.sh
Normal file
|
@ -0,0 +1,8 @@
|
|||
docker build . -t registry.cn-hangzhou.aliyuncs.com/fadinglight/bill-react:dev
|
||||
|
||||
docker push registry.cn-hangzhou.aliyuncs.com/fadinglight/bill-react:dev
|
||||
|
||||
ssh aliyun "cd /root/docker/bill-sys/;
|
||||
docker compose down;
|
||||
docker pull registry.cn-hangzhou.aliyuncs.com/fadinglight/bill-go:dev;
|
||||
docker compose up -d"
|
Loading…
Reference in New Issue
Block a user