mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-12 08:23:48 +02:00
7e708874ae
Adjust pipeline-config to match [Terminology](https://woodpecker-ci.org/docs/next/usage/terminology)
18 lines
551 B
YAML
18 lines
551 B
YAML
steps:
|
|
ping:
|
|
image: postgres
|
|
commands:
|
|
- sleep 10
|
|
- psql -U postgres -d test -h database -p 5432 -c "CREATE TABLE person( NAME TEXT );"
|
|
- psql -U postgres -d test -h database -p 5432 -c "INSERT INTO person VALUES('john smith');"
|
|
- psql -U postgres -d test -h database -p 5432 -c "INSERT INTO person VALUES('jane doe');"
|
|
- psql -U postgres -d test -h database -p 5432 -c "SELECT * FROM person;"
|
|
|
|
services:
|
|
database:
|
|
image: postgres
|
|
environment:
|
|
- POSTGRES_USER=postgres
|
|
- POSTGRES_DB=test
|
|
|