From dac94e7dfa1e5a330dfdc2a6174c0e136716134b Mon Sep 17 00:00:00 2001 From: songwol Date: Thu, 9 Jul 2026 17:43:56 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix=20:=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=8B=A4=ED=96=89=EC=9D=84=20=EC=9C=84?= =?UTF-8?q?=ED=95=9C=20CD=20=ED=99=98=EA=B2=BD=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd.yml | 49 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 8dda349..e53ee94 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -17,6 +17,46 @@ jobs: deploy: runs-on: ubuntu-latest environment: backend_env + services: + mysql: + image: mysql:8.4 + env: + MYSQL_ROOT_PASSWORD: root + MYSQL_DATABASE: amumal_test + MYSQL_USER: testuser + MYSQL_PASSWORD: testpass + ports: + - 3306:3306 + options: >- + --health-cmd="mysqladmin ping -h 127.0.0.1 -uroot -proot" + --health-interval=10s + --health-timeout=5s + --health-retries=10 + redis: + image: redis:7-alpine + ports: + - 6379:6379 + options: >- + --health-cmd="redis-cli ping" + --health-interval=10s + --health-timeout=5s + --health-retries=10 + env: + DB_HOST: 127.0.0.1 + DB_NAME: amumal_test + DB_USERNAME: testuser + DB_PASSWORD: testpass + DDL_AUTO_SET: create-drop + MAX_FILE_SIZE: 10MB + MAX_REQUEST_SIZE: 10MB + AWS_ACCESS_KEY: test-access-key + AWS_SECRET_KEY: test-secret-key + AWS_REGION: ap-northeast-2 + AWS_S3_BUCKET: test-bucket + JWT_SECRET: c2VjcmV0a2V5c2VjcmV0a2V5c2VjcmV0a2V5c2VjcmV0a2V5 + SERVER_URL: http://localhost + REDIS_HOST: 127.0.0.1 + REDIS_PORT: 6379 steps: - uses: actions/checkout@v4 @@ -34,6 +74,15 @@ jobs: distribution: 'temurin' java-version: '26' cache: 'gradle' + + - name: 외부 서비스 연결 확인 (MySQL, Redis) + shell: bash + run: | + echo > /dev/tcp/127.0.0.1/3306 + echo "MySQL 연결 확인 완료" + echo > /dev/tcp/127.0.0.1/6379 + echo "Redis 연결 확인 완료" + - name: 테스트 run: ./gradlew integrationTest --no-daemon From 416b1af91e454eaed720d2a908fcde3eb61774f3 Mon Sep 17 00:00:00 2001 From: songwol Date: Thu, 9 Jul 2026 17:48:55 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix=20:=20CI=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= =?UTF-8?q?=EB=A5=BC=20=EC=9C=84=ED=95=9C=20=EC=9E=84=EC=8B=9C=20=EC=BB=A4?= =?UTF-8?q?=EB=B0=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 9b6d663..84dbac5 100644 --- a/deploy.sh +++ b/deploy.sh @@ -151,4 +151,4 @@ echo "$NEW_ENV_PATH" > "$(color_env_file "$TARGET_COLOR")" echo "$NEW_TAG" > "$CURRENT_TAG_FILE" echo "$NEW_ENV_PATH" > "$CURRENT_ENV_FILE" -echo "블루-그린 배포 성공: $TARGET_COLOR -> $NEW_TAG" +echo "블루-그린 배포 성공: $TARGET_COLOR -> $NEW_TAG" \ No newline at end of file