github
This commit is contained in:
4
.github/workflows/deploy.yaml
vendored
4
.github/workflows/deploy.yaml
vendored
@@ -33,6 +33,8 @@ jobs:
|
||||
|
||||
- name: 部署到服务器
|
||||
uses: appleboy/ssh-action@master
|
||||
env:
|
||||
DOCKERHUB_USERNAME: jeremygan2021@163.com
|
||||
with:
|
||||
host: 121.40.192.128
|
||||
username: root
|
||||
@@ -41,8 +43,6 @@ jobs:
|
||||
port: 22
|
||||
# 将 Docker Hub 用户名传递给 SSH 脚本
|
||||
envs: DOCKERHUB_USERNAME
|
||||
env:
|
||||
DOCKERHUB_USERNAME: jeremygan2021@163.com
|
||||
script: |
|
||||
# 停止并删除旧容器
|
||||
docker stop quant-speed-page || true
|
||||
|
||||
Reference in New Issue
Block a user