update drone.yml

This commit is contained in:
Nick Bland 2021-11-08 13:01:20 +10:00
parent 47da3b5063
commit 781642ccfd
No known key found for this signature in database
GPG Key ID: B46CF88E4DAB4A2C

View File

@ -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
@ -38,4 +32,9 @@ steps:
services:
- 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