parent
46291ea510
commit
bf35609b64
@ -0,0 +1,57 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: smartfit
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build_api_image
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
context: .
|
||||||
|
registry: hub.codefirst.iut.uca.fr
|
||||||
|
repo: hub.codefirst.iut.uca.fr/remi.arnal/smartfit_api
|
||||||
|
username:
|
||||||
|
from_secret: cf_username
|
||||||
|
password:
|
||||||
|
from_secret: cf_password
|
||||||
|
|
||||||
|
- name: deploy_api_image
|
||||||
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
||||||
|
environment:
|
||||||
|
IMAGENAME: hub.codefirst.iut.uca.fr/remi.arnal/smartfit_api:latest
|
||||||
|
CONTAINERNAME: smartfit_api
|
||||||
|
COMMAND: create
|
||||||
|
OVERWRITE: true
|
||||||
|
CODEFIRST_CLIENTDRONE_ENV_HOST: SmartFit-smartfit_db
|
||||||
|
CODEFIRST_CLIENTDRONE_ENV_DATABASE:
|
||||||
|
from_secret: db_database
|
||||||
|
CODEFIRST_CLIENTDRONE_ENV_USER:
|
||||||
|
from_secret: db_user
|
||||||
|
CODEFIRST_CLIENTDRONE_ENV_PASSWORD:
|
||||||
|
from_secret: db_password
|
||||||
|
CODEFIRST_CLIENTDRONE_ENV_ROOT_PASSWORD:
|
||||||
|
from_secret: db_root_password
|
||||||
|
ADMINS: remiarnal,enzojolys,othmanebenjelloun
|
||||||
|
depends_on: [ build_api_image ]
|
||||||
|
|
||||||
|
- name: deploy_database_image
|
||||||
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
||||||
|
environment:
|
||||||
|
IMAGENAME: mariadb:10.5
|
||||||
|
CONTAINERNAME: smartfit_db
|
||||||
|
PRIVATE : true
|
||||||
|
COMMAND: create
|
||||||
|
CODEFIRST_CLIENTDRONE_ENV_MARIADB_ROOT_PASSWORD:
|
||||||
|
from_secret: db_root_password
|
||||||
|
CODEFIRST_CLIENTDRONE_ENV_MARIADB_DATABASE:
|
||||||
|
from_secret: db_database
|
||||||
|
CODEFIRST_CLIENTDRONE_ENV_MARIADB_USER:
|
||||||
|
from_secret: db_user
|
||||||
|
CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD:
|
||||||
|
from_secret: db_password
|
||||||
|
ADMINS: remiarnal,enzojolys,othmanebenjelloun
|
||||||
|
depends_on: [ deploy_api_image ]
|
Loading…
Reference in new issue