Skip to content

Commit a875b30

Browse files
authored
update docker ci to trigger deploy remotely on a vm
1 parent 3df5ab8 commit a875b30

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/docker.yml

+13
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,16 @@ jobs:
3333
pull: true
3434
push: true
3535
tags: laidrivm/blog:latest
36+
deploy:
37+
needs: build
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Execute remote commands via SSH to deploy
41+
uses: appleboy/[email protected]
42+
with:
43+
host: ${{ secrets.VM_HOST }}
44+
port: ${{ secrets.VM_PORT }}
45+
username: ${{ secrets.VM_USERNAME }}
46+
key: ${{ secrets.VM_SSH_KEY }}
47+
script: |
48+
sudo ./deploy.sh

0 commit comments

Comments
 (0)