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