diff mbox series

[v2,4/4] ci: randomize database credentials a bit

Message ID 20211207131503.416945-5-vicamo@gmail.com
State Superseded
Headers show
Series Test SQLite configuration | expand

Commit Message

You-Sheng Yang Dec. 7, 2021, 1:15 p.m. UTC
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
---
 .github/workflows/ci.yaml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 00c2ecf..2d4a45f 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -28,10 +28,10 @@  jobs:
     env:
       DATABASE_TYPE: "${{ matrix.db }}"
       DATABASE_HOST: "127.0.0.1"
-      DATABASE_NAME: ${{ matrix.db != 'sqlite3' && 'patchwork' || '/dev/shm/patchwork.test.db.sqlite3' }}
-      DATABASE_USER: patchwork
-      DATABASE_PASSWORD: password
-      MYSQL_ROOT_PASSWORD: root
+      DATABASE_NAME: ${{ matrix.db != 'sqlite3' && format('patchwork-db-{0}', github.run_id) || '/dev/shm/patchwork.test.db.sqlite3' }}
+      DATABASE_USER: patchwork-user-${{ github.run_id }}
+      DATABASE_PASSWORD: password-${{ github.run_id }}
+      MYSQL_ROOT_PASSWORD: root-${{ github.run_id }}
     services:
       postgres:
         image: postgres:latest