Skip to content

Commit dff48e1

Browse files
committed
ci/cd
1 parent 89fc8c8 commit dff48e1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/cd.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ jobs:
8383
--name my-app-container \
8484
--restart always \
8585
-p 8080:8080 \
86-
-e DB_NAME="$DB_NAME" \
86+
--add-host=host.docker.internal:host-gateway \
87+
-e SPRING_DATASOURCE_URL=jdbc:mysql://host.docker.internal:3306/$DB_NAME \
8788
-e DB_USER="$DB_USER" \
8889
-e DB_PASSWORD="$DB_PASSWORD" \
8990
$IMAGE

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ plugins {
33
kotlin("plugin.spring") version "2.2.21"
44
id("org.springframework.boot") version "4.0.1"
55
id("io.spring.dependency-management") version "1.1.7"
6+
id("org.jlleitschuh.gradle.ktlint") version "13.1.0"
67
}
78

89
group = "com.wafflestudio"

0 commit comments

Comments
 (0)