Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,17 @@ jobs:
- name: Zappa Update
run: uv run zappa update ${{ env.API_STAGE }} --docker-image-uri ${{ env.AWS_ECR_REGISTRY }}:${{ steps.info.outputs.TAG }}

- name: Django collect staticfiles
run: uv run zappa manage ${{ env.API_STAGE }} "collectstatic --no-input"

# Django migrate
- name: Django migrate
run: uv run zappa manage ${{ env.API_STAGE }} "migrate --noinput"

# Zappa certify
- name: Zappa Certify
run: uv run zappa certify ${{ env.API_STAGE }} --yes

- name: Collect staticfiles
run: uv run zappa manage ${{ env.API_STAGE }} "collectstatic --no-input"

# Notify to Slack (Success)
- name: Notify deployment to Slack
if: failure() || cancelled()
Expand Down
2 changes: 1 addition & 1 deletion app/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@
DEFAULT_STORAGE_BACKEND = env("DJANGO_DEFAULT_STORAGE_BACKEND", default="storages.backends.s3.S3Storage")
STATIC_STORAGE_BACKEND = env("DJANGO_STATIC_STORAGE_BACKEND", default="storages.backends.s3.S3Storage")

STORAGE_BUCKET_NAME = f"pyconkr-backend-api-{API_STAGE}"
STORAGE_BUCKET_NAME = f"pyconkr-backend-{API_STAGE}"
STORAGE_OPTIONS = (
{
"bucket_name": STORAGE_BUCKET_NAME,
Expand Down