From eeb08bfc9abb5cf01d26519e6abcc827e0f8d499 Mon Sep 17 00:00:00 2001 From: ASak1104 Date: Fri, 5 Jan 2024 05:53:32 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20github=20action=20secret=20key=20?= =?UTF-8?q?=EC=A0=84=EB=A9=B4=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit github action 동작 확인을 위한 전면 수정 --- .github/workflows/ci-build-action.yml | 6 ++++-- docker-compose.yml | 12 +++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci-build-action.yml b/.github/workflows/ci-build-action.yml index 569da807..e554cfe3 100644 --- a/.github/workflows/ci-build-action.yml +++ b/.github/workflows/ci-build-action.yml @@ -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}} diff --git a/docker-compose.yml b/docker-compose.yml index 2258f101..dd6f8608 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,7 +1,7 @@ version: "3.8" services: - mysql-local: + mysql-main: build: context: ./mysql dockerfile: Dockerfile @@ -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 @@ -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: