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.
68 lines
1.8 KiB
68 lines
1.8 KiB
kind: pipeline
|
|
type: docker
|
|
name: API_Formulaire
|
|
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
|
|
|
|
steps:
|
|
|
|
# docker image build
|
|
- name: set_api
|
|
image: plugins/docker
|
|
settings:
|
|
dockerfile: ./API/Dockerfile
|
|
context: API
|
|
registry: hub.codefirst.iut.uca.fr
|
|
repo: hub.codefirst.iut.uca.fr/dorian.hodin/api_android
|
|
username:
|
|
from_secret: SECRET_USERNAME
|
|
password:
|
|
from_secret: SECRET_PASSWD
|
|
|
|
# conteneur deployment
|
|
- name: deploy_api
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
environment:
|
|
IMAGENAME: hub.codefirst.iut.uca.fr/dorian.hodin/api_android:latest
|
|
CONTAINERNAME: deploy_api
|
|
COMMAND: create
|
|
OVERWRITE: true
|
|
CODEFIRST_CLIENTDRONE_ENV_HOST:
|
|
from_secret: db_host
|
|
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: dorianhodin, mathildejean3
|
|
depends_on: [ set_api ]
|
|
|
|
|
|
# database container deployment
|
|
- name: db
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
environment:
|
|
IMAGENAME: mariadb:10.5
|
|
CONTAINERNAME: 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: dorianhodin, mathildejean3
|
|
depends_on: [ deploy_api ]
|
|
|
|
|