feat: setup postgres in woodpecker
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

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

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