File tree Expand file tree Collapse file tree 1 file changed +4
-32
lines changed
Expand file tree Collapse file tree 1 file changed +4
-32
lines changed Original file line number Diff line number Diff line change 88 # tags: [ 'v*.*.*' ]
99 # 手动触发部署
1010 workflow_dispatch :
11- pull_request :
12- branches : [ "next" ]
11+ # pull_request:
12+ # branches: [ "next" ]
1313
1414env :
1515 # 仓库地址
1818
1919
2020jobs :
21- ENV_Init :
22- name : " 环境初始化 "
21+ Docker-Image :
22+ name : " 构建Docker镜像 "
2323 runs-on : ubuntu-latest
2424 permissions :
2525 contents : read
4949 - name : Build And Push Docker image
5050 run :
5151 PROXY_DOMAIN=true pnpm faster-image
52-
53- # 列出所有镜像
54- - name : Docker Images And Container List
55- run : |
56- docker images;
57- echo "-----------正在运行的服务--------";
58- docker ps;
59-
60- - name : 读取当前版本号
61- id : version
62- uses : ashley-taylor/read-json-property-action@v1.0
63- with :
64- path : ./package.json
65- property : version
66- # 拉取镜像,更新服务
67- - name : Pull Image And Update ESC
68- uses : appleboy/ssh-action@master
69- with :
70- host : ${{ secrets.Server_Host }}
71- port : ${{ secrets.Server_Port }}
72- username : ${{ secrets.Server_UserName }}
73- password : ${{ secrets.Server_Password }}
74- script : |
75- docker images &&
76- echo "-----------正在运行的服务--------" &&
77- docker ps &&
78- cd /service && git reset --hard && git pull origin master &&
79- bash ./scripts/book_doc.deploy.sh jsc v${{steps.version.outputs.value}} &&
You can’t perform that action at this time.
0 commit comments