Commit c3ff55d 1 parent 08f6d4c commit c3ff55d Copy full SHA for c3ff55d
File tree 1 file changed +7
-9
lines changed
1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -49,18 +49,16 @@ jobs:
49
49
- name : Push Docker image
50
50
run : docker push sahilyeole/portfolio:latest
51
51
52
- - name : Start ssh-agent
53
- uses : webfactory/ssh-agent@v0.5.4
54
- with :
55
- ssh-private-key : ${{ secrets.SSH_KEY }}
56
- ssh-passphrase : ${{ secrets.SSH_PASSPHRASE }}
57
-
58
52
- name : Deploy to server via SSH
59
- run : |
60
- ssh -o StrictHostKeyChecking=no ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} << 'EOF'
53
+ uses : appleboy/ssh-action@master
54
+ with :
55
+ host : ${{ secrets.SSH_HOST }}
56
+ username : ${{ secrets.SSH_USERNAME }}
57
+ key : ${{ secrets.SSH_KEY }}
58
+ passphrase : ${{ secrets.SSH_PASSPHRASE }}
59
+ script : |
61
60
docker pull sahilyeole/portfolio:latest
62
61
docker stop portfolio-container || true
63
62
docker rm portfolio-container || true
64
63
docker run -d --name portfolio-container -p 80:3000 sahilyeole/portfolio:latest
65
- EOF
66
64
You can’t perform that action at this time.
0 commit comments