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')