Skip to content

Commit

Permalink
chore:改用密钥验证
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazi7 committed Dec 6, 2024
1 parent 7ace44b commit 81192da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest
Expand All @@ -14,7 +14,7 @@ jobs:

- name: 设置 Docker Buildx
uses: docker/setup-buildx-action@v3

- name: 登录 Docker Hub
uses: docker/login-action@v3
with:
Expand All @@ -33,10 +33,10 @@ jobs:
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
key: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
script: |
docker pull lihazi/weilai
docker stop weilai || true
docker rm weilai || true
docker run -d --name weilai -p 80:80 lihazi/weilai
docker run -d --name weilai -p 80:80 lihazi/weilai

0 comments on commit 81192da

Please sign in to comment.