Skip to content

Commit f01ca69

Browse files
authored
feat: update ci
1 parent a1b12ea commit f01ca69

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/deploy-esc.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Deploy-ESC
33

44
on:
55
push: # 推送的时候触发
6-
# branches: [ "master" ] # 推送的分支
6+
# branches: [ "master" ] # 推送的分支
77
# Publish semver tags as releases.
8-
# tags: [ 'v*.*.*' ]
8+
# tags: [ 'v*.*.*' ]
99
# 手动触发部署
1010
workflow_dispatch:
1111
pull_request:
@@ -32,23 +32,17 @@ jobs:
3232
- name: Checkout repository
3333
uses: actions/checkout@v3
3434

35-
- name: Setup Node And PNPM
36-
uses: actions/setup-node@v3
37-
with:
38-
node-version: 14.20.1
39-
# 缓存 pnpm 依赖
40-
cache: pnpm
41-
4235
- name: Login Docker
43-
run: |
44-
docker version
36+
run:
37+
docker version;
4538
# 登录阿里云镜像仓库
4639
docker login --username=${{ env.UserName }} --password=${{ secrets.Docker_Password }} ${{env.REGISTRY}}
4740

4841
- name: PNPM Install
4942
uses: pnpm/action-setup@v2
5043
with:
5144
version: 7
45+
node-version: 14.20.1
5246
# 使用 pnpm 安装依赖
5347
run_install: true
5448

@@ -64,7 +58,7 @@ jobs:
6458
steps:
6559
## 构建镜像并推送
6660
- name: Build And Push Docker image
67-
run: |
61+
run:
6862
PROXY_DOMAIN=true pnpm image
6963

7064
# 列出所有镜像
@@ -99,7 +93,7 @@ jobs:
9993
port: ${{ secrets.Server_Port }}
10094
username: ${{ secrets.Server_UserName }}
10195
password: ${{ secrets.Server_Password }}
102-
script: |
96+
script:
10397
docker images;
10498
echo "-----------正在运行的服务--------";
10599
docker ps;

0 commit comments

Comments
 (0)