Skip to content

Commit

Permalink
chore: github action secret key 전면 수정
Browse files Browse the repository at this point in the history
github action 동작 확인을 위한 전면 수정
  • Loading branch information
ASak1104 committed Jan 4, 2024
1 parent 4d08087 commit a15eeb5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci-build-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ jobs:
with:
files: ./docker-compose.yml
env:
services.mysql.environment.MYSQL_DATABASE: ${{secrets.MYSQL_DATABASE}}
services.mysql.environment.MYSQL_ROOT_PASSWORD: ${{secrets.MYSQL_PASSWORD}}
services.mysql-main.environment.MYSQL_ROOT_PASSWORD: ${{secrets.MAIN_MYSQL_PASSWORD}}
services.mysql-main.environment.MYSQL_DATABASE: ${{secrets.MAIN_MYSQL_DATABASE}}
services.mysql-test.environment.MYSQL_ROOT_PASSWORD: ${{secrets.TEST_MYSQL_PASSWORD}}
services.mysql-test.environment.MYSQL_DATABASE: ${{secrets.TEST_MYSQL_DATABASE}}
services.minio.environment.MINIO_ROOT_USER: ${{secrets.MINIO_USER}}
services.minio.environment.MINIO_ROOT_PASSWORD: ${{secrets.MINIO_PASSWORD}}

Expand All @@ -35,9 +37,9 @@ jobs:
with:
files: ./src/test/resources/application.yaml
env:
spring.datasource.username: ${{secrets.MYSQL_USERNAME}}
spring.datasource.password: ${{secrets.MYSQL_PASSWORD}}
spring.datasource.url: ${{secrets.MYSQL_URL}}
spring.datasource.username: ${{secrets.TEST_MYSQL_USERNAME}}
spring.datasource.password: ${{secrets.TEST_MYSQL_PASSWORD}}
spring.datasource.url: ${{secrets.TEST_MYSQL_URL}}
spring.minio.url: ${{secrets.MINIO_URL}}
spring.minio.bucket: ${{secrets.MINIO_BUCKET}}
spring.minio.access-key: ${{secrets.MINIO_USER}}
Expand Down
12 changes: 5 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: "3.8"

services:
mysql-local:
mysql-main:
build:
context: ./mysql
dockerfile: Dockerfile
Expand All @@ -10,9 +10,8 @@ services:
volumes:
- "data_volume:/var/lib/mysql-local"
environment:
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_ROOT_PASSWORD: ${MAIN_MYSQL_PASSWORD}
MYSQL_DATABASE: ${MAIN_MYSQL_DATABASE}
mysql-test:
build:
context: ./mysql
Expand All @@ -22,9 +21,8 @@ services:
volumes:
- "data_volume:/var/lib/mysql-test"
environment:
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_ROOT_PASSWORD: ${TEST_MYSQL_PASSWORD}
MYSQL_DATABASE: ${TEST_MYSQL_DATABASE}
minio:
image: minio/minio
ports:
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
username: ${MYSQL_USERNAME}
password: ${MYSQL_PASSWORD}
url: ${MYSQL_URL}
username: ${MAIN_MYSQL_USERNAME}
password: ${MAIN_MYSQL_PASSWORD}
url: ${MAIN_MYSQL_URL}
jpa:
hibernate:
ddl-auto: validate
Expand Down
6 changes: 3 additions & 3 deletions src/test/resources/application.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
username: ${MYSQL_USERNAME}
password: ${MYSQL_PASSWORD}
url: ${MYSQL_URL}
username: ${TEST_MYSQL_USERNAME}
password: ${TEST_MYSQL_PASSWORD}
url: ${TEST_MYSQL_URL}
jpa:
hibernate:
ddl-auto: validate
Expand Down

0 comments on commit a15eeb5

Please sign in to comment.