Commit e3b3ef6 1 parent 8daaf58 commit e3b3ef6 Copy full SHA for e3b3ef6
File tree 2 files changed +17
-2
lines changed
2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 36
36
env :
37
37
SPRING_PROFILES_ACTIVE : local # prod 로 변경
38
38
DATABASE_URL : ${{ secrets.DATABASE_URL }}
39
- DATABASE_USERNAME : " sharetable "
40
- DATABASE_PASSWORD : " sharetable "
39
+ DATABASE_USERNAME : ${{ secrets.DATABASE_USERNAME }}
40
+ DATABASE_PASSWORD : ${{ secrets.DATABASE_PASSWORD }}
41
41
APPLE_TEAM_ID : ${{ secrets.APPLE_TEAM_ID }}
42
42
APPLE_LOGIN_KEY : ${{ secrets.APPLE_LOGIN_KEY }}
43
43
APPLE_CLIENT_ID : ${{ secrets.APPLE_CLIENT_ID }}
Original file line number Diff line number Diff line change @@ -49,6 +49,21 @@ dependencies {
49
49
testRuntimeOnly ' org.junit.platform:junit-platform-launcher'
50
50
}
51
51
52
+ def activeProfile = System . getenv(" SPRING_PROFILES_ACTIVE" ) ?: " local"
53
+
54
+ processResources {
55
+ filesMatching(" **/application.yaml" ) {
56
+ expand(SPRING_PROFILES_ACTIVE : activeProfile)
57
+ }
58
+ filesMatching(" **/application-${ activeProfile} .yaml" ) {
59
+ expand([
60
+ DATABASE_URL : System . getenv(" DATABASE_URL" ),
61
+ DATABASE_USERNAME : System . getenv(" DATABASE_USERNAME" ),
62
+ DATABASE_PASSWORD : System . getenv(" DATABASE_PASSWORD" )
63
+ ])
64
+ }
65
+ }
66
+
52
67
// queryDsl 설정 ↓↓↓
53
68
def querydslDir = " src/main/generated"
54
69
sourceSets {
You can’t perform that action at this time.
0 commit comments