Skip to content

Commit

Permalink
auto deploy ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Nov 5, 2024
1 parent 17bd374 commit 1abdac0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/image.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,18 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

deploy:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs:
- image
steps:
- uses: appleboy/[email protected]
with:
host: ${{ secrets.DEPLOY_SSH_HOST }}
port: ${{ secrets.DEPLOY_SSH_PORT }}
username: ${{ secrets.DEPLOY_SSH_USERNAME }}
fingerprint: ${{ secrets.DEPLOY_SSH_FINGERPRINT }}
key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
script: ${{ secrets.DEPLOY_SSH_SCRIPT }}

0 comments on commit 1abdac0

Please sign in to comment.