drone-ci testing
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
7886ada3ef
commit
eb607b99d9
11
.drone.yml
11
.drone.yml
|
|
@ -16,12 +16,17 @@ steps:
|
|||
- name: docker_sock
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- export POSTGRES_USER=$${POSTGRES_USER}
|
||||
- export POSTGRES_PASSWORD=$${POSTGRES_PASSWORD}
|
||||
- export POSTGRES_DB=$${POSTGRES_DB}
|
||||
- docker-compose -p rgraph-test up -d
|
||||
|
||||
- name: test
|
||||
image: python:3.10-alpine
|
||||
environment:
|
||||
POSTGRES_USER:
|
||||
from_secret: TESTING_USER
|
||||
POSTGRES_PASSWORD:
|
||||
from_secret: TESTING_PASSWORD
|
||||
POSTGRES_DB:
|
||||
from_secret: TESTING_DB
|
||||
commands:
|
||||
- hostip=$(ip route show | awk '/default/ {print $3}')
|
||||
- export POSTGRES_URL=$hostip
|
||||
|
|
|
|||
Loading…
Reference in New Issue