Skip to content

Commit

Permalink
feat: 重新启动服务
Browse files Browse the repository at this point in the history
  • Loading branch information
songxingguo committed May 19, 2024
1 parent 0c3d26b commit a763c98
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,4 @@ jobs:
password: ${{ secrets.SERVER_PWD }} # 服务器密码;需要去仓库的 settings/secrets/actions 去创建
port: ${{ secrets.SERVER_PORT }} # 服务器端口,默认22;需要去仓库的 settings/secrets/actions 去创建
script: | # 重启更新镜像
docker rmi registry.cn-shanghai.aliyuncs.com/songxingguo/resume:latest -f
docker stop resume
docker rm resume
docker pull registry.cn-shanghai.aliyuncs.com/songxingguo/resume:latest
docker run -dp 8081:80 --add-host resume.songxingguo.com:172.17.0.2 --restart=always --name resume registry.cn-shanghai.aliyuncs.com/songxingguo/resume:latest
cd /root/deploy && ./deploy.sh
12 changes: 0 additions & 12 deletions nginx/web.conf

This file was deleted.

0 comments on commit a763c98

Please sign in to comment.