From 1b319f5f8c868fb918f7fb63388716936c078853 Mon Sep 17 00:00:00 2001 From: kubo Date: Sun, 18 Apr 2021 14:31:14 +0200 Subject: [PATCH] #439 add league db to github build env --- .github/workflows/build.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 9e2686e68..a8f1fb584 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -22,6 +22,18 @@ jobs: MYSQL_DATABASE: faf MYSQL_USER: faf-java-api MYSQL_PASSWORD: banana + faf-league-db: + image: mysql:5.7 + options: >- + --health-cmd "mysqladmin ping --silent" + --health-interval 10s + --health-timeout 5s + --health-retries 5 + env: + MYSQL_ROOT_PASSWORD: banana + MYSQL_DATABASE: faf-league + MYSQL_USER: faf-league-service + MYSQL_PASSWORD: banana steps: - name: Install tools run: apt update && apt install -y git wget @@ -41,6 +53,7 @@ jobs: env: GRADLE_CLI_OPTS: "--console=plain --stacktrace --quiet" DATABASE_ADDRESS: faf-db + LEAGUE_DATABASE_ADDRESS: faf-league-db run: "chmod +x ./gradlew && ./gradlew ${GRADLE_CLI_OPTS} build" - name: Build and push Docker images if: github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/tags')