Skip to content

Commit b3167b6

Browse files
committed
add: 배포 중 마이그레이션도 진행하도록 추가
1 parent b93a67b commit b3167b6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,17 @@ jobs:
115115
- name: Zappa Update
116116
run: uv run zappa update ${{ env.API_STAGE }} --docker-image-uri ${{ env.AWS_ECR_REGISTRY }}:${{ steps.info.outputs.TAG }}
117117

118+
- name: Django collect staticfiles
119+
run: uv run zappa manage ${{ env.API_STAGE }} "collectstatic --no-input"
120+
121+
# Django migrate
122+
- name: Django migrate
123+
run: uv run zappa manage ${{ env.API_STAGE }} "migrate --noinput"
124+
118125
# Zappa certify
119126
- name: Zappa Certify
120127
run: uv run zappa certify ${{ env.API_STAGE }} --yes
121128

122-
- name: Collect staticfiles
123-
run: uv run zappa manage ${{ env.API_STAGE }} "collectstatic --no-input"
124-
125129
# Notify to Slack (Success)
126130
- name: Notify deployment to Slack
127131
if: failure() || cancelled()

0 commit comments

Comments
 (0)