From 778a28ded35ee9858a8e60eb3e5d5ce80db4ce4f Mon Sep 17 00:00:00 2001 From: Louis DUFOUR Date: Fri, 13 Oct 2023 13:45:27 +0200 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.drone.yml b/.drone.yml index a518ec5..8a84602 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,3 +18,38 @@ steps: commands: - vendor/bin/phpunit --filter "/(testCallWebService)( .*)?$/" ./common/Tests/WS_UtilTest.php - vendor/bin/phpunit --filter "/(testAllKeysToUppercase)( .*)?$/" ./common/Tests/WS_UtilTest.php + depends_on: + - Setup + + - name: hadolint + image: hadolint/hadolint:latest-alpine + commands: + - hadolint Dockerfile + depends_on: + - test + + - name: bluid-docker-image + image: plugins/docker + settings: + dockerfile: Dockerfile + registry: hub.codefirst.iut.uca.fr + repo: hub.codefirst.iut.uca.fr/louis.dufour/CICD_WebPage + username: + from_secret: SECRET_REGISTRY_USERNAME + password: + from_secret: SECRET_REGISTRY_PASSWORD + depends_on: + - hadolint + + - name: deploy-container + image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest + environment: + IMAGENAME: hub.codefirst.iut.uca.fr/louis.dufour/CICD_WebPage:latest + CONTAINERNAME: phpContainerLouis + COMMAND: create + OVERWRITE: true + CODEFIRST_CLIENTDRONE_ENV_CONTAINER_PATH: louis.dufour-php + CODEFIRST_CLIENTDRONE_ENV_LIBRARY_URL: https://codefirst.iut.uca.fr/containers/louis.dufour-php + CODEFIRST_CLIENTDRONE_ENV_BACKEND_URL: https://codefirst.iut.uca.fr/containers/louis.dufour-php + depends_on: + - docker-build-and-push