Skip to content

Commit

Permalink
action ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
alwaysmeow committed May 27, 2024
1 parent 6e501b8 commit 4570b8e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,17 @@ jobs:
run: docker-compose build

- name: Push Docker Images
run: docker-compose push
run: docker-compose push

deploy:
needs: docker-build-and-push
runs-on: ubuntu-latest
steps:
- name: SSH connection
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.SERVER_USER }}
password: ${{ secrets.SERVER_PASSWORD }}
port: 22
script: whoami

0 comments on commit 4570b8e

Please sign in to comment.