|
|
@ -85,7 +85,7 @@ steps:
|
|
|
|
from_secret: db_password
|
|
|
|
from_secret: db_password
|
|
|
|
depends_on: [ php_script ]
|
|
|
|
depends_on: [ php_script ]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# database image
|
|
|
|
- name: db_image
|
|
|
|
- name: db_image
|
|
|
|
image: plugins/docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
settings:
|
|
|
@ -97,3 +97,20 @@ steps:
|
|
|
|
from_secret: SECRET_USERNAME
|
|
|
|
from_secret: SECRET_USERNAME
|
|
|
|
password:
|
|
|
|
password:
|
|
|
|
from_secret: SECRET_PASSWD
|
|
|
|
from_secret: SECRET_PASSWD
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#database deployment
|
|
|
|
|
|
|
|
- name: deploy-db
|
|
|
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
|
|
|
|
environment:
|
|
|
|
|
|
|
|
IMAGENAME: hub.codefirst.iut.uca.fr/dorian.hodin/dafl_music:latest
|
|
|
|
|
|
|
|
CONTAINERNAME: db_image
|
|
|
|
|
|
|
|
COMMAND: create
|
|
|
|
|
|
|
|
OVERWRITE: true
|
|
|
|
|
|
|
|
PRIVATE: true
|
|
|
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_SQL_DATABASE:
|
|
|
|
|
|
|
|
from_secret: db_database
|
|
|
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_SQL_USER:
|
|
|
|
|
|
|
|
from_secret: db_user
|
|
|
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_SQL_PASSWORD:
|
|
|
|
|
|
|
|
from_secret: db_password
|
|
|
|
|
|
|
|
depends_on: [ db_image ]
|