use secret for db passwords in tests (#1381)

This commit is contained in:
mmetc 2022-03-23 09:40:23 +01:00 committed by GitHub
parent 42ff269bc8
commit 8df58df757
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 9 deletions

View file

@ -17,7 +17,7 @@ jobs:
mariadb:
image: mariadb:latest
env:
MYSQL_ROOT_PASSWORD: mysql
MYSQL_ROOT_PASSWORD: ${{ secrets.DATABASE_PASSWORD }}
ports:
- 3306:3306
steps:
@ -50,7 +50,7 @@ jobs:
DB_BACKEND: mysql
MYSQL_HOST: 127.0.0.1
MYSQL_PORT: 3306
MYSQL_PASSWORD: mysql
MYSQL_PASSWORD: ${{ secrets.DATABASE_PASSWORD }}
MYSQL_USER: root
- name: "BATS: run tests"
@ -59,5 +59,5 @@ jobs:
DB_BACKEND: mysql
MYSQL_HOST: 127.0.0.1
MYSQL_PORT: 3306
MYSQL_PASSWORD: mysql
MYSQL_PASSWORD: ${{ secrets.DATABASE_PASSWORD }}
MYSQL_USER: root

View file

@ -17,7 +17,7 @@ jobs:
mariadb:
image: mysql:latest
env:
MYSQL_ROOT_PASSWORD: mysql
MYSQL_ROOT_PASSWORD: ${{ secrets.DATABASE_PASSWORD }}
ports:
- 3306:3306
steps:
@ -50,7 +50,7 @@ jobs:
DB_BACKEND: mysql
MYSQL_HOST: 127.0.0.1
MYSQL_PORT: 3306
MYSQL_PASSWORD: mysql
MYSQL_PASSWORD: ${{ secrets.DATABASE_PASSWORD }}
MYSQL_USER: root
- name: "BATS: run tests"
@ -59,5 +59,5 @@ jobs:
DB_BACKEND: mysql
MYSQL_HOST: 127.0.0.1
MYSQL_PORT: 3306
MYSQL_PASSWORD: mysql
MYSQL_PASSWORD: ${{ secrets.DATABASE_PASSWORD }}
MYSQL_USER: root

View file

@ -17,7 +17,7 @@ jobs:
postgres:
image: postgres:latest
env:
POSTGRES_PASSWORD: postgres
POSTGRES_PASSWORD: ${{ secrets.DATABASE_PASSWORD }}
ports:
- 5432:5432
options: >-
@ -55,7 +55,7 @@ jobs:
DB_BACKEND: postgres
POSTGRES_HOST: 127.0.0.1
POSTGRES_PORT: 5432
POSTGRES_PASSWORD: postgres
POSTGRES_PASSWORD: ${{ secrets.DATABASE_PASSWORD }}
POSTGRES_USER: postgres
- name: "BATS: run tests"
@ -64,5 +64,5 @@ jobs:
DB_BACKEND: postgres
POSTGRES_HOST: 127.0.0.1
POSTGRES_PORT: 5432
POSTGRES_PASSWORD: postgres
POSTGRES_PASSWORD: ${{ secrets.DATABASE_PASSWORD }}
POSTGRES_USER: postgres