From 67b2e3fa3a5624a3444c5f18fc7c4180a0b39b3a Mon Sep 17 00:00:00 2001 From: DOEKYONG Date: Thu, 5 Oct 2023 16:21:02 +0900 Subject: [PATCH] mysql --- .github/workflows/auto-deploy.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-deploy.yml b/.github/workflows/auto-deploy.yml index 7e18b44dc..5220b6b4e 100644 --- a/.github/workflows/auto-deploy.yml +++ b/.github/workflows/auto-deploy.yml @@ -21,6 +21,16 @@ jobs: defaults: run: working-directory: ${{ env.BE_WORKING_DIR }} + services: + mysql_db: + image: mysql:8.0 + ports: + - 3306:3306 # HOST:CONTAINER + env: + MYSQL_DATABASE: secondhand + MYSQL_USER: root + MYSQL_PASSWORD: 1234 + steps: # 1. Source 단계 @@ -46,7 +56,8 @@ jobs: sudo apt-get update sudo apt-get install -y redis-server sudo service redis-server start - + + # 3. build 단계 - name: Grant execute permission for gradlew run: chmod +x ./gradlew