mirror of https://github.com/logos-co/open-law.git
add: auto-deploy
This commit is contained in:
parent
fbf79ea848
commit
c9ebfd3b86
|
@ -64,3 +64,16 @@ jobs:
|
|||
with:
|
||||
push: true
|
||||
tags: simple2b/open-law-dev:latest
|
||||
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
steps:
|
||||
- name: Deploy
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST_IP_PROD }}
|
||||
username: ${{ secrets.SSH_USER }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
||||
script: |
|
||||
sudo su -l runner -c "cd open-law; ./up.sh"
|
||||
|
|
Loading…
Reference in New Issue