[PATCH v3 6/6] ci: randomize database credentials a bit

You-Sheng Yang vicamo at gmail.com
Thu Dec 9 04:02:38 AEDT 2021


Signed-off-by: You-Sheng Yang <vicamo at gmail.com>
---
 .github/workflows/ci.yaml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 0818aca..19a1098 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
-- 
2.32.0



More information about the Patchwork mailing list