Merge branch 'master' of https://codefirst.iut.uca.fr/git/WikiFantasy/WF-Database
commit
a685c6b979
@ -1,26 +1,32 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: Deploiement
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
name: default
|
||||
|
||||
steps:
|
||||
- name: deploy-container-postgresql
|
||||
- name: deploy-container-postgres
|
||||
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
||||
environment:
|
||||
IMAGENAME: postgres:17-alpine
|
||||
CONTAINERNAME: wf-database
|
||||
IMAGENAME: postgres:13
|
||||
CONTAINERNAME: dbWikiFantasy
|
||||
COMMAND: create
|
||||
OVERWRITE: false
|
||||
PRIVATE: true
|
||||
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_PASSWORD:
|
||||
from_secret: POSTGRES_PASSWORD
|
||||
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_DB:
|
||||
from_secret: POSTGRES_DB
|
||||
from_secret: db_password
|
||||
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_USER:
|
||||
from_secret: POSTGRES_USER
|
||||
CODEFIRST_CLIENTDRONE_ENV_TRAEFIK_LABELS: true
|
||||
ADMINS: marocher8, maximerocher , kentinbrongniart
|
||||
from_secret: db_user
|
||||
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_DB:
|
||||
from_secret: db_database
|
||||
|
||||
- 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 marocher8-dbWikiFantasy -U postgres; do sleep 1; done
|
||||
- psql -h marocher8-dbWikiFantasy -U postgres -d wikifantasy -f script/init.sql
|
||||
|
Loading…
Reference in new issue