Skip to content
Merged
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
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ name: Deploy to EC2 via CodeDeploy + Docker

on:
push:
branches: [ develop ]
branches: [ develop, main ]
pull_request:
types: [ closed ]
branches: [ develop, main ]

env:
AWS_REGION: ap-northeast-2
Expand All @@ -15,6 +18,8 @@ permissions:
jobs:
build_and_push:
runs-on: ubuntu-latest
# PR이 closed되었지만 merged되지 않은 경우는 배포하지 않음
if: github.event_name == 'push' || github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v4

Expand Down
Loading