This commit is contained in:
24
.gitea/workflows/deploy.yml
Normal file
24
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
# .gitea/workflows/deploy.yml
|
||||
name: Deploy to Production
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
name: Deploy
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Deploy to server
|
||||
uses: appleboy/ssh-action@v1.0.3
|
||||
with:
|
||||
host: 172.16.10.175
|
||||
username: user # 'user' 대신 실제 서버 접속 아이디를 입력하세요.
|
||||
key: ${{ secrets.SELF_PRIVATE_175_KEY }}
|
||||
script: |
|
||||
cd /home/user/services/conRec
|
||||
git pull
|
||||
docker compose restart
|
||||
Reference in New Issue
Block a user