parent
5d244288e4
commit
348df05c19
@ -0,0 +1,21 @@
|
||||
name: Deploy to Server
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main,TEST ]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Deploy to server
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
with:
|
||||
host: ${{ secrets.SERVER_HOST }}
|
||||
username: ${{ secrets.SERVER_USER }}
|
||||
key: ${{ secrets.SERVER_SSH_PRIVATE_KEY }}
|
||||
script: |
|
||||
cd /root/StudyingSpace
|
||||
git pull
|
||||
docker compose pull
|
||||
docker compose up -d
|
||||
Loading…
Reference in new issue