feat🔫: 自动部署脚本

This commit is contained in:
clz 2022-09-07 20:30:05 +08:00
parent e7283c41ca
commit a22dc5cafe
3 changed files with 32 additions and 0 deletions

16
.dockerignore Normal file
View File

@ -0,0 +1,16 @@
# ide
.idea
.vscode
# git
.git
.gitignore
script
README.md
docker-compose.yaml
Dockerfile

8
scripts/build.ps1 Normal file
View 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
View 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"