Skip to content

Commit 794814d

Browse files
authored
feat: deploy esc
1 parent 0c5c330 commit 794814d

File tree

1 file changed

+4
-32
lines changed

1 file changed

+4
-32
lines changed

.github/workflows/deploy-esc.yml

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
# tags: [ 'v*.*.*' ]
99
# 手动触发部署
1010
workflow_dispatch:
11-
pull_request:
12-
branches: [ "next" ]
11+
# pull_request:
12+
# branches: [ "next" ]
1313

1414
env:
1515
# 仓库地址
@@ -18,8 +18,8 @@ env:
1818

1919

2020
jobs:
21-
ENV_Init:
22-
name: "环境初始化"
21+
Docker-Image:
22+
name: "构建Docker镜像"
2323
runs-on: ubuntu-latest
2424
permissions:
2525
contents: read
@@ -49,31 +49,3 @@ jobs:
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}} &&

0 commit comments

Comments
 (0)