Skip to content

Commit fd6413f

Browse files
committed
FIX: Workflow File Update
1 parent 22fa3a3 commit fd6413f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/docker-build-and-run.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)