We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22fa3a3 commit fd6413fCopy full SHA for fd6413f
1 file changed
.github/workflows/docker-build-and-run.yml
@@ -25,18 +25,21 @@ jobs:
25
- name: Push the Image
26
run: docker push staticaron/yui-bot:latest
27
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
+
33
- name: Log into the VPS
34
uses: appleboy/ssh-action@master
35
with:
36
host: ${{ secrets.VPS_HOST }}
37
username: ${{ secrets.VPS_USERNAME }}
- key: ${{ secrets.VPS_KEY }}
- ssh-private-key: ${{ secrets.VPS_PRIVATE_KEY }}
38
port: 22
39
script: |
40
docker pull staticaron/yui-bot:latest
41
42
docker stop yui-bot || true
43
docker rm yui-bot || true
44
- docker run --rm -d --name yui-bot staticaron/yui-bot:latest
45
+ docker run --rm -d --name yui-bot staticaron/yui-bot:latest
0 commit comments