File tree Expand file tree Collapse file tree 2 files changed +4
-24
lines changed Expand file tree Collapse file tree 2 files changed +4
-24
lines changed Original file line number Diff line number Diff line change 5858 steps :
5959 - name : Checkout code
6060 uses : actions/checkout@v4
61-
62- - name : Make gradlew executable
63- run : chmod +x ./gradlew
64-
65- - name : Set up JDK 21
66- uses : actions/setup-java@v3
67- with :
68- java-version : ' 21'
69- distribution : ' temurin'
70-
71- - name : Setup Gradle
72- uses : gradle/gradle-build-action@v2
73-
74- - name : Build with Gradle
75- run : ./gradlew clean bootJar -x test --no-daemon
76-
77- - name : Verify SecurityConfig in JAR
78- run : |
79- echo "Checking if SecurityConfig is in the built JAR..."
80- jar tf build/libs/backend-0.0.1-SNAPSHOT.jar | grep SecurityConfig || echo "ERROR: SecurityConfig not found in JAR!"
8161
8262 - name : Set environment
8363 id : env
Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ RUN apk add --no-cache bash
77
88WORKDIR /app
99
10- # 소스 코드 전체를 빌드 환경에 복사 (소스 코드 변경 시 이 Layer의 캐시가 깨집니다)
11- # COPY 명령 이전에 git log 등으로 파일 변경을 확인하는 것이 일반적이지만,
12- # Dockerfile 내에서는 이 COPY가 캐시를 깨는 주요 트리거입니다.
10+ # 소스 코드 전체를 빌드 환경에 복사
1311COPY . .
1412
13+ # gradlew에 실행 권한 부여
14+ RUN chmod +x ./gradlew
15+
1516# Clean Build 실행 (SecurityConfig 변경 사항 포함)
16- # 항상 깨끗하게 빌드하여 최신 JAR 파일을 생성
1717RUN ./gradlew clean bootJar
1818
1919#
You can’t perform that action at this time.
0 commit comments