File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -25,18 +25,21 @@ jobs:
2525 - name : Push the Image
2626 run : docker push staticaron/yui-bot:latest
2727
28+ - name : Set up SSH private key
29+ uses : webfactory/ssh-agent@v0.5.3
30+ with :
31+ ssh-private-key : ${{ secrets.VPS_PRIVATE_KEY }}
32+
2833 - name : Log into the VPS
2934 uses : appleboy/ssh-action@master
3035 with :
3136 host : ${{ secrets.VPS_HOST }}
3237 username : ${{ secrets.VPS_USERNAME }}
33- key : ${{ secrets.VPS_KEY }}
34- ssh-private-key : ${{ secrets.VPS_PRIVATE_KEY }}
3538 port : 22
3639 script : |
3740 docker pull staticaron/yui-bot:latest
3841
3942 docker stop yui-bot || true
4043 docker rm yui-bot || true
4144
42- docker run --rm -d --name yui-bot staticaron/yui-bot:latest
45+ docker run --rm -d --name yui-bot staticaron/yui-bot:latest
You can’t perform that action at this time.
0 commit comments