]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
ci: Randomize database credentials a bit
authorYou-Sheng Yang <vicamo@gmail.com>
Thu, 9 Dec 2021 03:38:43 +0000 (11:38 +0800)
committerStephen Finucane <stephen@that.guru>
Wed, 23 Feb 2022 13:43:59 +0000 (13:43 +0000)
Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
Reviewed-by: Stephen Finucane <stephen@that.guru>
.github/workflows/ci.yaml

index 0818aca5f45e4b9695471e2b3015fa2f4609ddb5..19a10987ad58e39a756bb675c0b113676a01e38e 100644 (file)
@@ -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