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: 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