Skip to content

Commit 1554883

Browse files
authored
Update docker.yml
1 parent 7b073d0 commit 1554883

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/docker.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,15 @@ jobs:
2929
context: .
3030
push: true
3131
tags: ${{ secrets.DOCKERHUB_USERNAME }}/djangoblog:latest
32+
33+
- name: multiple command
34+
uses: appleboy/ssh-action@master
35+
with:
36+
host: ${{ secrets.HOST }}
37+
username: ${{ secrets.USERNAME }}
38+
key: ${{ secrets.KEY }}
39+
port: ${{ secrets.PORT }}
40+
script: |
41+
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/djangoblog:latest
42+
cd ${{ secrets.DOCKERPATH }}
43+
docker-compose up -d

0 commit comments

Comments
 (0)