From ac63a69229ce7c9eaf899aaa56939b321309915f Mon Sep 17 00:00:00 2001
From: Neda Moeini <neda.moeini@ga0479-nmoeini.home>
Date: Tue, 22 Aug 2023 11:23:22 +0200
Subject: [PATCH] Fixed pipeline problem.

---
 .gitlab-ci.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a48b0c14d..1ec871116 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,16 +14,15 @@ run-tox-pipeline:
   image: python:3.10
 
   services:
-    - name: postgres:15.4
-      alias: postgres
+    - postgres:15.4
 
   # Change pip's cache directory to be inside the project directory since we can
   # only cache local items.
   variables:
-    POSTGRES_DB: postgres
+    POSTGRES_DB: nwa-workflows-test
     POSTGRES_USER: nwa
     POSTGRES_PASSWORD: nwa
-    DATABASE_URI_TEST: 'postgresql://nwa:nwa@postgres:5432/postgres'
+    $DATABASE_URI_TEST: 'postgresql://nwa:nwa@postgres:5432/nwa-workflows-test'
     PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
 
   # Pip's cache doesn't store the python packages
@@ -41,6 +40,7 @@ run-tox-pipeline:
     - . venv/bin/activate
 
   script:
+    - export DATABASE_URI_TEST=$DATABASE_URI_TEST
     - pip install tox
     - tox
 
-- 
GitLab