diff --git a/.drone.yml b/.drone.yml index 8be471c..ac77e5d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -105,23 +105,26 @@ steps: password: from_secret: SECRET_REGISTRY_PASSWORD - - name: deploy-container-mysql + + - name: deploy-container-bdd image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest environment: - IMAGENAME: mariadb:10 - CONTAINERNAME: mysql - COMMAND: create - OVERWRITE: true - PRIVATE: true - CODEFIRST_CLIENTDRONE_ENV_MARIADB_ROOT_PASSWORD: - from_secret: db_root_password - CODEFIRST_CLIENTDRONE_ENV_MARIADB_DATABASE: + CODEFIRST_CLIENTDRONE_ENV_TYPE: BDD + CODEFIRST_CLIENTDRONE_ENV_HOST: SAE-mysql + CODEFIRST_CLIENTDRONE_ENV_PORTDB: 3306 + CODEFIRST_CLIENTDRONE_ENV_DATABASE: from_secret: db_database - CODEFIRST_CLIENTDRONE_ENV_MARIADB_USER: + CODEFIRST_CLIENTDRONE_ENV_USERNAME: from_secret: db_user - CODEFIRST_CLIENTDRONE_ENV_MARIADB_PASSWORD: + CODEFIRST_CLIENTDRONE_ENV_PASSWORD: from_secret: db_password + IMAGENAME: hub.codefirst.iut.uca.fr/antoine.jourdain/sae_2a_anglais:latest + CONTAINERNAME: api + CODEFIRST_CLIENTDRONE_ENV_PORT: 8080 ADMINS: antoinejourdain,patrickbrugiere,luciegoigoux,marcchevaldonne + COMMAND: create + OVERWRITE: true + depends_on: [deploy-container-mysql, docker-build-and-push] - name: deploy-container