use secret for db passwords in tests (#1381)
This commit is contained in:
parent
42ff269bc8
commit
8df58df757
3 changed files with 9 additions and 9 deletions
6
.github/workflows/ci_bats_mariadb.yaml
vendored
6
.github/workflows/ci_bats_mariadb.yaml
vendored
|
@ -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
|
||||
|
|
6
.github/workflows/ci_bats_mysql.yaml
vendored
6
.github/workflows/ci_bats_mysql.yaml
vendored
|
@ -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
|
||||
|
|
6
.github/workflows/ci_bats_postgres.yaml
vendored
6
.github/workflows/ci_bats_postgres.yaml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue