From d83745b9ad6b69fe4cbec38ccc99f35e44d03a44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=9C=EC=9D=B4=EB=AF=B8?= <63184334+JJ503@users.noreply.github.com> Date: Thu, 2 Nov 2023 04:56:14 +0000 Subject: [PATCH] =?UTF-8?q?ci:=20flyway=20ci=20=EC=8A=A4=ED=81=AC=EB=A6=BD?= =?UTF-8?q?=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/backend_dev_flyway.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/backend_dev_flyway.yml b/.github/workflows/backend_dev_flyway.yml index c5798839d..cd504a4ae 100644 --- a/.github/workflows/backend_dev_flyway.yml +++ b/.github/workflows/backend_dev_flyway.yml @@ -21,16 +21,10 @@ jobs: MYSQL_PASSWORD: password ports: - 7777:3306 + options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 steps: - uses: actions/checkout@v3 - - - name: Start Docker Compose - run: docker-compose up -d - - - name: Check MySQL Connection - run: | - mysql -h localhost -P 7777 -u test -ppassword -e "SELECT 1" - name: settings java uses: actions/setup-java@v3 @@ -69,6 +63,6 @@ jobs: ./gradlew -Dflyway.configFiles=flyway.conf flywayValidate --stacktrace working-directory: ./backend/ddang - - name: Stop Docker Compose - run: docker-compose down + - name: Stop MySQL + run: docker stop mysql