Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
urinaner authored Nov 23, 2024
1 parent d44f665 commit 87cbfd6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@ name: Backend CI/CD using GitHub Actions & Docker
on:
push:
branches: [ "main" ]
paths:
- 'backend/**'
pull_request:
branches: [ "main" ]
paths:
- 'backend/**'

jobs:
build:
Expand Down Expand Up @@ -39,7 +35,7 @@ jobs:
# Gradle 설정
- name: Setup Gradle
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5

# 백엔드 빌드 실행
- name: Build Backend
run: |
Expand Down Expand Up @@ -74,4 +70,4 @@ jobs:
sudo docker run -d -p 8080:8080 ${{ secrets.DOCKER_USERNAME }}/backend:latest
# 사용하지 않는 이미지 정리
sudo docker image prune -a -f
sudo docker image prune -a -f

0 comments on commit 87cbfd6

Please sign in to comment.