Skip to content

Commit

Permalink
ci(.github): 자동 배포 워크플로우 갱신
Browse files Browse the repository at this point in the history
  • Loading branch information
hepheir committed Sep 25, 2024
1 parent ad1809e commit 097cfb9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI via SSH (Deploy)

on:
push:
branches: [ "main" ]
branches: [ "develop" ]

jobs:
build:
Expand All @@ -16,8 +16,6 @@ jobs:
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
key: ${{ secrets.SSH_KEY }}
script: |
cd be-django
git pull origin main
git checkout main
systemctl restart uwsgi
# 서버 쉘 프로파일에 자동으로 아래의 환경에서 시작되도록 설정했음을 전제로 함.
# /app 경로에서, 가상환경 상태로 시작
script: tools/update

0 comments on commit 097cfb9

Please sign in to comment.