25 lines
527 B
YAML
25 lines
527 B
YAML
# .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
|