Fakultas Ilmu Komputer UI

Commit 13693722 authored by Johanes Steven's avatar Johanes Steven

use env vars

parent 1df2f59b
Pipeline #81857 passed with stages
in 7 minutes and 48 seconds
......@@ -28,12 +28,12 @@ test:
- name: postgres:13.2-alpine
alias: postgres
variables:
POSTGRES_DB: ci
POSTGRES_USER: ci_user
POSTGRES_PASSWORD: ci_password
SPRING_DATASOURCE_URL: jdbc:postgresql://postgres:5432/ci
SPRING_DATASOURCE_USERNAME: ci_user
SPRING_DATASOURCE_PASSWORD: ci_password
POSTGRES_DB: $DATABASE_DB
POSTGRES_USER: $DATABASE_USERNAME
POSTGRES_PASSWORD: $DATABASE_PASSWORD
SPRING_DATASOURCE_URL: jdbc:$DATABASE_URL
SPRING_DATASOURCE_USERNAME: $DATABASE_USERNAME
SPRING_DATASOURCE_PASSWORD: $DATABASE_PASSWORD
script:
- gradle check
-Dspring.profiles.active=ci
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment