Skip to content

Commit f43b40c

Browse files
committed
fix: workflows fix
1 parent f502f4e commit f43b40c

2 files changed

Lines changed: 18 additions & 11 deletions

File tree

.github/workflows/main_optimo-user.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212

1313
jobs:
1414
build-and-deploy:
15-
runs-on: ubuntu-latest # Windows -> Linux로 변경
15+
runs-on: ubuntu-latest
1616
permissions:
1717
id-token: write
1818
contents: read
@@ -25,16 +25,17 @@ jobs:
2525
uses: actions/setup-java@v4
2626
with:
2727
java-version: ${{ env.JAVA_VERSION }}
28-
distribution: 'temurin' # Microsoft -> Temurin으로 변경
28+
distribution: 'temurin'
2929

3030
- name: Grant execute permission
31-
run: chmod +x gradlew # Linux에서 권한 설정
31+
run: chmod +x gradlew
3232

3333
- name: Build with Gradle
3434
run: ./gradlew clean build --stacktrace --info
3535

36-
- name: Package Azure Functions
37-
run: ./gradlew azureFunctionsPackage --stacktrace
36+
# 🔥 azureFunctionsPackage 대신 jar 작업 의존성 실행
37+
- name: Prepare Azure Functions package
38+
run: ./gradlew jar azureFunctionsPackage --stacktrace
3839

3940
- name: Login to Azure
4041
uses: azure/login@v2
@@ -47,4 +48,5 @@ jobs:
4748
uses: Azure/functions-action@v1
4849
with:
4950
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
50-
package: build/azure-functions/${{ env.AZURE_FUNCTIONAPP_NAME }}
51+
package: build/azure-functions/${{ env.AZURE_FUNCTIONAPP_NAME }}
52+
publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE }}

build.gradle

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ dependencies {
5151
implementation 'org.reflections:reflections:0.10.2'
5252
}
5353

54-
// JAR 설정 (단일 블록으로 통합)
54+
// JAR 설정
5555
jar {
5656
archiveBaseName = "Optimo_User_BE"
5757
archiveVersion = "0.0.1-SNAPSHOT"
5858
archiveClassifier = '' // plain JAR 비활성화
5959
}
6060

61+
// 🔥 ignoreFailures 속성 제거
6162
tasks.named("azureFunctionsPackage") {
6263
dependsOn("jar")
63-
ignoreFailures = false
6464
}
6565

6666
tasks.named('test') {
@@ -73,7 +73,7 @@ azurefunctions {
7373
appName = 'optimo-user'
7474
region = 'Korea Central'
7575
runtime {
76-
os = 'linux' // Windows -> Linux로 변경
76+
os = 'windows'
7777
javaVersion = '17'
7878
}
7979
appSettings {
@@ -82,9 +82,14 @@ azurefunctions {
8282
}
8383
}
8484

85-
// 🔥 함수 클래스 스캔 문제 해결을 위한 구성
85+
// 🔥 함수 클래스 스캔 문제 해결
8686
configurations.all {
8787
resolutionStrategy {
8888
force 'org.reflections:reflections:0.10.2'
8989
}
90-
}
90+
}
91+
92+
// 🔥 Spring Boot Uber JAR 생성 비활성화
93+
bootJar {
94+
enabled = false
95+
}

0 commit comments

Comments
 (0)