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
No related branches found
No related tags found
No related merge requests found
Pipeline #37293 failed
...@@ -68,12 +68,14 @@ test-backend: ...@@ -68,12 +68,14 @@ test-backend:
image: maven:3.6.3-openjdk-17 image: maven:3.6.3-openjdk-17
services: services:
- name: postgres:13 - name: postgres:13
alias: postgres
needs: ["install-backend"] needs: ["install-backend"]
variables: variables:
POSTGRES_USER: "username" POSTGRES_USER: username
POSTGRES_PASSWORD: "password" POSTGRES_PASSWORD: password
POSTGRES_DB: "db_tunesphere" POSTGRES_DB: db_tunesphere
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/db_tunesphere
SPRING_DATASOURCE_USERNAME: username
SPRING_DATASOURCE_PASSWORD: password
script: script:
- cd ./backend/ - cd ./backend/
- sleep 15 # Wait postgres - sleep 15 # Wait postgres
...@@ -106,9 +108,4 @@ deploy: ...@@ -106,9 +108,4 @@ deploy:
script: script:
- echo "Deploying both frontend and backend" - echo "Deploying both frontend and backend"
- echo "Deploying frontend dist/ folder" - echo "Deploying frontend dist/ folder"
- echo "Deploying backend JAR to server" - 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