|
|
@ -36,7 +36,18 @@ steps:
|
|
|
|
- cd Sources
|
|
|
|
- cd Sources
|
|
|
|
- sonar-scanner -D sonar.projectKey=HeartTrack -D sonar.host.url=https://codefirst.iut.uca.fr/sonar
|
|
|
|
- sonar-scanner -D sonar.projectKey=HeartTrack -D sonar.host.url=https://codefirst.iut.uca.fr/sonar
|
|
|
|
depends_on: [ test ]
|
|
|
|
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
|
|
|
|
- name: docker-build-and-push
|
|
|
|
image: plugins/docker
|
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
settings:
|
|
|
@ -50,6 +61,8 @@ steps:
|
|
|
|
from_secret: SECRET_REGISTRY_USERNAME
|
|
|
|
from_secret: SECRET_REGISTRY_USERNAME
|
|
|
|
password:
|
|
|
|
password:
|
|
|
|
from_secret: SECRET_REGISTRY_PASSWORD
|
|
|
|
from_secret: SECRET_REGISTRY_PASSWORD
|
|
|
|
|
|
|
|
depends_on:
|
|
|
|
|
|
|
|
- rewrite-urls
|
|
|
|
|
|
|
|
|
|
|
|
- name: deploy-container
|
|
|
|
- name: deploy-container
|
|
|
|
image: >-
|
|
|
|
image: >-
|
|
|
|