diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a4f23f7a199bceba4b2e992468a4d1758faa9ac9..c8de61158a3478710a81a15d22d96b3748108a8d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -68,12 +68,14 @@ test-backend: image: maven:3.6.3-openjdk-17 services: - name: postgres:13 - alias: postgres needs: ["install-backend"] variables: - POSTGRES_USER: "username" - POSTGRES_PASSWORD: "password" - POSTGRES_DB: "db_tunesphere" + POSTGRES_USER: username + POSTGRES_PASSWORD: password + POSTGRES_DB: db_tunesphere + SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/db_tunesphere + SPRING_DATASOURCE_USERNAME: username + SPRING_DATASOURCE_PASSWORD: password script: - cd ./backend/ - sleep 15 # Wait postgres @@ -106,9 +108,4 @@ deploy: script: - echo "Deploying both frontend and backend" - echo "Deploying frontend dist/ folder" - - echo "Deploying backend JAR to server" - - -services: - - name: postgres:13 - alias: postgres \ No newline at end of file + - echo "Deploying backend JAR to server" \ No newline at end of file