feat: setup postgres in woodpecker
ci/woodpecker/push/woodpecker Pipeline failed Details

This commit is contained in:
Aravinth Manivannan 2022-09-09 17:16:22 +05:30
parent 778960a6df
commit 3c8877816e
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
1 changed files with 9 additions and 0 deletions

View File

@ -1,7 +1,10 @@
pipeline:
backend:
image: rust
environment:
- DATABSE_URL=postgres://postgres:password@database:5432/postgres
commands:
- make migrate
- make
- make test
@ -13,3 +16,9 @@ pipeline:
from_secret: DOCKER_TOKEN
repo: realaravinth/librepages-forms
tags: latest
services:
database:
image: postgres
environment:
- POSTGRES_PASSWORD=password