From f7a8fddad6c20482ee081719e4523d5523ecfcff Mon Sep 17 00:00:00 2001
From: "thibault.capt" <thibault.capt@etu.hesge.ch>
Date: Sun, 12 Jan 2025 17:44:58 +0100
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2d4fd18..9fd24b9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -15,16 +15,17 @@ variables:
   POSTGRES_HOST_AUTH_METHOD: trust
 
 default-postgres:
- services:
-   - postgres
- image: postgres
- variables:
-   PGPORT: "5432"
+  stage: dependencies
+  services:
+    - postgres
+  image: postgres
+  variables:
+    PGPORT: "5432"
 
- script:
-   # official way to provide password to psql: http://www.postgresql.org/docs/9.3/static/libpq-envars.html
-   - export PGPASSWORD=$POSTGRES_PASSWORD
-   - psql -h "postgres" -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "SELECT 'OK' AS status;"
+  script:
+    # official way to provide password to psql: http://www.postgresql.org/docs/9.3/static/libpq-envars.html
+    - export PGPASSWORD=$POSTGRES_PASSWORD
+    - psql -h "postgres" -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "SELECT 'OK' AS status;"
 
 # FRONTEND: Installation des dépendances
 install-frontend:
-- 
GitLab