Skip to content

Commit

Permalink
ci: 使用 tailscale ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Sep 5, 2023
1 parent 6811c1b commit 79e26a2
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,7 @@ jobs:
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
tags: tag:ci
- name: Deploy to server
uses: appleboy/ssh-action@55dabf81b49d4120609345970c91507e2d734799
with:
host: ${{ secrets.SSH_HOST }}
port: ${{ secrets.SSH_PORT }}
username: ${{ secrets.SSH_USERNAME }}
key: ${{ secrets.SSH_KEY }}
script_stop: true
script: sudo ${{ secrets.COOLQBOT_ROOT }}/deploy.sh
debug: true
run: tailscale ssh ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} "${{ secrets.COOLQBOT_ROOT }}/deploy.sh"

deploy_prod:
name: Deploy Prod
Expand Down

0 comments on commit 79e26a2

Please sign in to comment.