You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: deploy-postgresql
|
|
|
|
|
|
|
|
services:
|
|
|
|
- name: postgresql
|
|
|
|
image: postgres:13
|
|
|
|
environment:
|
|
|
|
POSTGRES_USER:
|
|
|
|
from_secret: db_user
|
|
|
|
POSTGRES_PASSWORD:
|
|
|
|
from_secret: db_password
|
|
|
|
POSTGRES_DB:
|
|
|
|
from_secret: db_database
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: check-database
|
|
|
|
image: postgres:13
|
|
|
|
commands:
|
|
|
|
- sleep 10 # Attendre que la base de données soit prête
|
|
|
|
- psql -h postgresql -U $POSTGRES_USER -d $POSTGRES_DB -c "SELECT 1;"
|