From: You-Sheng Yang Date: Thu, 9 Dec 2021 03:38:43 +0000 (+0800) Subject: ci: Randomize database credentials a bit X-Git-Tag: v3.1.0~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=258e5ccfe1e1ae06075fb4421aaff8d1edfb00bc;p=thirdparty%2Fpatchwork.git ci: Randomize database credentials a bit Signed-off-by: You-Sheng Yang Reviewed-by: Stephen Finucane --- diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0818aca5..19a10987 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