Skip to content

Commit

Permalink
#439 add league db to github build env
Browse files Browse the repository at this point in the history
  • Loading branch information
bukajsytlos committed Apr 18, 2021
1 parent 98ba6e1 commit 1b319f5
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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')
Expand Down

0 comments on commit 1b319f5

Please sign in to comment.