drone-ci testing
continuous-integration/drone/push Build encountered an error
Details
continuous-integration/drone/push Build encountered an error
Details
This commit is contained in:
parent
6115c165bd
commit
c4bec20781
24
.drone.yml
24
.drone.yml
|
|
@ -1,6 +1,14 @@
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: test
|
name: test
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER:
|
||||||
|
from_secret: TESTING_USER
|
||||||
|
POSTGRES_PASSWORD:
|
||||||
|
from_secret: TESTING_PASSWORD
|
||||||
|
POSTGRES_DB:
|
||||||
|
from_secret: TESTING_DB
|
||||||
|
secrets: [TESTING_USER, TESTING_PASSWORD, TESTING_DB]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: db-up
|
- name: db-up
|
||||||
|
|
@ -8,14 +16,6 @@ steps:
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker_sock
|
- name: docker_sock
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
environment:
|
|
||||||
POSTGRES_USER:
|
|
||||||
from_secret: TESTING_USER
|
|
||||||
POSTGRES_PASSWORD:
|
|
||||||
from_secret: TESTING_PASSWORD
|
|
||||||
POSTGRES_DB:
|
|
||||||
from_secret: TESTING_DB
|
|
||||||
secrets: [TESTING_USER, TESTING_PASSWORD, TESTING_DB]
|
|
||||||
commands:
|
commands:
|
||||||
- export POSTGRES_USER=$${POSTGRES_USER}
|
- export POSTGRES_USER=$${POSTGRES_USER}
|
||||||
- export POSTGRES_PASSWORD=$${POSTGRES_PASSWORD}
|
- export POSTGRES_PASSWORD=$${POSTGRES_PASSWORD}
|
||||||
|
|
@ -23,14 +23,6 @@ steps:
|
||||||
- docker-compose -p rgraph-test up -d
|
- docker-compose -p rgraph-test up -d
|
||||||
- name: test
|
- name: test
|
||||||
image: python:3.10-alpine
|
image: python:3.10-alpine
|
||||||
environment:
|
|
||||||
POSTGRES_USER:
|
|
||||||
from_secret: TESTING_USER
|
|
||||||
POSTGRES_PASSWORD:
|
|
||||||
from_secret: TESTING_PASSWORD
|
|
||||||
POSTGRES_DB:
|
|
||||||
from_secret: TESTING_DB
|
|
||||||
secrets: [TESTING_USER, TESTING_PASSWORD, TESTING_DB]
|
|
||||||
commands:
|
commands:
|
||||||
- hostip=$(ip route show | awk '/default/ {print $3}')
|
- hostip=$(ip route show | awk '/default/ {print $3}')
|
||||||
- export POSTGRES_URL=$hostip
|
- export POSTGRES_URL=$hostip
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue