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.

33 lines
1.0 KiB

4 months ago
kind: pipeline
type: docker
2 months ago
name: default
4 months ago
4 months ago
steps:
2 months ago
- name: deploy-container-postgres
3 months ago
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
4 months ago
environment:
2 months ago
IMAGENAME: postgres:13
2 months ago
CONTAINERNAME: dbWikiFantasy
4 months ago
COMMAND: create
PRIVATE: true
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_PASSWORD:
2 months ago
from_secret: db_password
4 months ago
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_USER:
2 months ago
from_secret: db_user
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_DB:
from_secret: db_database
3 months ago
2 months ago
- name: init-database
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
environment:
PGPASSWORD:
from_secret: db_password
PGUSER:
from_secret: db_user
PGDATABASE:
from_secret: db_database
commands:
- apt-get update && apt-get install -y postgresql-client
- until pg_isready -h dbWikiFantasy -U postgres; do sleep 1; done
- psql -h dbWikiFantasy -U postgres -d wikifantasy -f script/init.sql