Skip to content
Snippets Groups Projects
Commit 7f7ddefe authored by thibault.capt's avatar thibault.capt
Browse files

Update .gitlab-ci.yml file

parent d27e4ec9
Branches
No related tags found
No related merge requests found
Pipeline #37293 failed
......@@ -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
......@@ -107,8 +109,3 @@ deploy:
- echo "Deploying both frontend and backend"
- echo "Deploying frontend dist/ folder"
- echo "Deploying backend JAR to server"
\ No newline at end of file
services:
- name: postgres:13
alias: postgres
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment