diff --git a/.drone.yml b/.drone.yml index d60f7a75..560f82cc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -36,7 +36,18 @@ steps: - cd Sources - sonar-scanner -D sonar.projectKey=HeartTrack -D sonar.host.url=https://codefirst.iut.uca.fr/sonar depends_on: [ test ] - # build image and push on the registry ✔️ + # build image and push on the registry ✔️ + - name: rewrite-urls + image: 'busybox:latest' + commands: + - cd Sources + - ls + - >- + 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/ + - name: docker-build-and-push image: plugins/docker settings: @@ -50,6 +61,8 @@ steps: from_secret: SECRET_REGISTRY_USERNAME password: from_secret: SECRET_REGISTRY_PASSWORD + depends_on: + - rewrite-urls - name: deploy-container image: >-