update drone.yml
This commit is contained in:
parent
47da3b5063
commit
781642ccfd
17
.drone.yml
17
.drone.yml
@ -8,18 +8,12 @@ trigger:
|
|||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
environment:
|
|
||||||
POSTGRES_USER: postgres
|
|
||||||
POSTGRES_PASSWORD: password
|
|
||||||
POSTGRES_DB: newsletter
|
|
||||||
DATABASE_URL: postgres://postgres:password@postgres:5432/newsletter
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: postgresDBTest # Test that the service is ready to be acted upon for cargo tests
|
- name: postgresDBTest # Test that the service is ready to be acted upon for cargo tests
|
||||||
image: postgres:12-alpine
|
image: postgres:12-alpine
|
||||||
commands:
|
commands:
|
||||||
- sleep 15
|
- sleep 20
|
||||||
- psql -U $POSTGRES_USER -d $POSTGRES_DB
|
- "psql -U postgtres -d newsletter -h postgres"
|
||||||
|
|
||||||
- name: sqlxMigrate
|
- name: sqlxMigrate
|
||||||
image: rust:1.56
|
image: rust:1.56
|
||||||
@ -38,4 +32,9 @@ steps:
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
- name: postgres
|
- name: postgres
|
||||||
image: postgres:12-alpine
|
image: postgres:12-alpine
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: postgres
|
||||||
|
POSTGRES_PASSWORD: password
|
||||||
|
POSTGRES_DB: newsletter
|
||||||
|
DATABASE_URL: postgres://postgres:password@postgres:5432/newsletter
|
Loading…
Reference in New Issue
Block a user