From 64a5a2c7c6d2ebc3dc6e803158fb861b7daec613 Mon Sep 17 00:00:00 2001 From: David D'ALMEIDA Date: Sat, 17 Feb 2024 11:19: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 | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.drone.yml b/.drone.yml index a7d00ad2..3e082e73 100644 --- a/.drone.yml +++ b/.drone.yml @@ -37,6 +37,15 @@ steps: - sonar-scanner -D sonar.projectKey=HeartTrack -D sonar.host.url=https://codefirst.iut.uca.fr/sonar depends_on: [ test ] + - name: rewrite-urls + image: 'busybox:latest' + commands: + - >- + find . -type f -exec sed -i -r + "s@(href|src)=\"/@\1=\"$${PLUGIN_CONTAINER_PATH}@g" {} + + settings: + container_path: https://codefirst.iut.uca.fr/containers/HeartDev-web/ + # build image and push on the registry ✔️ - name: docker-build-and-push image: plugins/docker @@ -50,6 +59,8 @@ steps: from_secret: SECRET_REGISTRY_USERNAME password: from_secret: SECRET_REGISTRY_PASSWORD + depends_on: + - rewrite-urls - name: deploy-container image: >-