update drone.yml
This commit is contained in:
parent
47da3b5063
commit
781642ccfd
15
.drone.yml
15
.drone.yml
@ -8,18 +8,12 @@ trigger:
|
||||
event:
|
||||
- push
|
||||
|
||||
environment:
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: password
|
||||
POSTGRES_DB: newsletter
|
||||
DATABASE_URL: postgres://postgres:password@postgres:5432/newsletter
|
||||
|
||||
steps:
|
||||
- name: postgresDBTest # Test that the service is ready to be acted upon for cargo tests
|
||||
image: postgres:12-alpine
|
||||
commands:
|
||||
- sleep 15
|
||||
- psql -U $POSTGRES_USER -d $POSTGRES_DB
|
||||
- sleep 20
|
||||
- "psql -U postgtres -d newsletter -h postgres"
|
||||
|
||||
- name: sqlxMigrate
|
||||
image: rust:1.56
|
||||
@ -39,3 +33,8 @@ steps:
|
||||
services:
|
||||
- name: postgres
|
||||
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