From 6a19311fd55d40e202d9a4a69d22ac384e09e858 Mon Sep 17 00:00:00 2001 From: Hugo CRENEAU Date: Tue, 4 Mar 2025 09:40:23 +0100 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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 175e7ab..8f78069 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,11 +19,11 @@ steps: from_secret: SECRET_REGISTRY_USERNAME password: from_secret: SECRET_REGISTRY_PASSWORD + no_cache: true # Force la reconstruction complète de l'image - name: deploy-container image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest - environment: - IMAGENAME: hub.codefirst.iut.uca.fr/hugo.creneau/portfoliobutcreneauhugo:latest - CONTAINERNAME: portfoliobutcreneauhugo - COMMAND: create - OVERWRITE: true \ No newline at end of file + commands: + - docker rm -f portfoliobutcreneauhugo || true # Supprime l'ancien conteneur s'il existe + - docker pull hub.codefirst.iut.uca.fr/hugo.creneau/portfoliobutcreneauhugo:latest # Force le pull de l'image + - docker run -d --name portfoliobutcreneauhugo -p 80:80 hub.codefirst.iut.uca.fr/hugo.creneau/portfoliobutcreneauhugo:latest \ No newline at end of file