Skip to content

Commit

Permalink
refact: ci/cd 구성 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
kamothi committed Oct 2, 2024
1 parent 245d750 commit 84b0897
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ jobs:
mysql -h 127.0.0.1 -u root -ptestdb testdb < ./infra/sql/user.sql
- name: Build with Gradle Wrapper
env:
SPRING_R2DBC_URL: r2dbc:pool:mysql://localhost:3306/testdb
SPRING_R2DBC_PASSWORD: testdb
MONGO_URL: ${{ secrets.MONGO_URL }}
run: ./gradlew build

# dockerfile을 통해 이미지를 빌드하고, 이를 docker repo로 push
Expand Down
4 changes: 2 additions & 2 deletions infra/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ services:
- mysql
environment:
SPRING_PROFILES_ACTIVE: prodDB
SPRING_DATA_MONGODB_URI: ${MONGODB_URL}
SPRING_R2DBC_PASSWORD: 12345678
# SPRING_DATA_MONGODB_URI: ${MONGODB_URL}
# SPRING_R2DBC_PASSWORD: 12345678
networks:
- test_network

Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ spring:
profiles:
group:
"local": "localDB"
"prod": "prodDB"
"prod": "prodDB2"
r2dbc:
url: r2dbc:pool:mysql://localhost:3306/webflux
username: root
Expand Down Expand Up @@ -39,4 +39,4 @@ eureka:
spring:
config:
activate:
on-profile: "prodDB"
on-profile: "prodDB2"
2 changes: 1 addition & 1 deletion src/main/resources/bootstrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ spring:
config:
uri: http://172.31.10.0:8888
name: game-service
profile: prod
profile: prodDB
enabled: true

0 comments on commit 84b0897

Please sign in to comment.