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