Mise à jour de '.drone.yml'
continuous-integration/drone/push Build is passing Details

master
David D'ALMEIDA 1 year ago
parent 65b63b0f2f
commit 64a5a2c7c6

@ -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: >-

Loading…
Cancel
Save