Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Nov 30, 2024
1 parent 6c8352d commit 06b7fcd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/REUSABLE_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ jobs:

services:
mysql:
image: ${{ (matrix.driver == 'mysql' && matrix.service) || ((matrix.driver == 'mariadb' && matrix.service) || '') }}
image: ${{ contains(fromJson('["mysql", "mariadb"]'), matrix.driver) && matrix.service || '' }}
env:
MYSQL_DATABASE: ${{ env.DB_DATABASE }}
MYSQL_USER: ${{ env.DB_USERNAME }}
Expand Down Expand Up @@ -220,7 +220,8 @@ jobs:
fi
working-directory: ${{ inputs.backend_directory }}
env:
DB_PORT: ${{ contains(fromJson('["mysql", "mariadb"]'), matrix.driver) && job.services.mysql.ports['3306'] || matrix.driver == 'pgsql' && job.services.postgres.ports['5432'] }}
DB_HOST: 127.0.0.1
DB_PORT: ${{ (contains(fromJson('["mysql", "mariadb"]'), matrix.driver) && job.services.mysql.ports['3306']) || (matrix.driver == 'pgsql' && job.services.postgres.ports['5432']) }}
DB_PREFIX: ${{ matrix.prefix }}
DB_DRIVER: ${{ matrix.driver }}
COMPOSER_PROCESS_TIMEOUT: 600
Expand Down

0 comments on commit 06b7fcd

Please sign in to comment.