This commit is contained in:
@@ -46,19 +46,18 @@ jobs:
|
|||||||
|
|
||||||
# 3. 部署到服务器
|
# 3. 部署到服务器
|
||||||
- name: 部署到服务器
|
- name: 部署到服务器
|
||||||
uses: appleboy/ssh-action@master
|
# uses: appleboy/ssh-action@master
|
||||||
|
# 换用 garygrossgarten/github-action-ssh,它不依赖外部下载
|
||||||
|
uses: garygrossgarten/github-action-ssh@release
|
||||||
with:
|
with:
|
||||||
host: 121.40.192.128
|
host: 121.40.192.128
|
||||||
username: root
|
username: root
|
||||||
password: 123quant-speed
|
password: 123quant-speed
|
||||||
script: |
|
command: |
|
||||||
# 停止并删除旧容器
|
# 停止并删除旧容器
|
||||||
docker stop quant-speed-page || true
|
docker stop quant-speed-page || true
|
||||||
docker rm quant-speed-page || true
|
docker rm quant-speed-page || true
|
||||||
|
|
||||||
# 登录私有 Registry (如果需要)
|
|
||||||
# docker login 121.43.104.161:6500 -u ${{ secrets.DOCKER_REGISTRY_USER }} -p ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
|
|
||||||
|
|
||||||
# 拉取最新镜像
|
# 拉取最新镜像
|
||||||
docker pull 121.43.104.161:6500/quant-speed-page:latest
|
docker pull 121.43.104.161:6500/quant-speed-page:latest
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user