|
|
|
@ -7,27 +7,6 @@ trigger:
|
|
|
|
|
- push
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: code-analysis
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/alix.jeudi--lemoine/codefirst-dronesonarplugin-python312:latest
|
|
|
|
|
commands:
|
|
|
|
|
- /opt/sonar-scanner/bin/sonar-scanner -Dsonar.login=$PLUGIN_SONAR_TOKEN -Dsonar.projectKey=SAE3A_MemoryMap-api -Dsonar.coverageReportPaths="coveragereport/SonarQube.xml" -Dsonar.coverage.exclusions="tests/**" -Dsonar.python.version=3
|
|
|
|
|
settings:
|
|
|
|
|
sonar_token:
|
|
|
|
|
from_secret: SECRET_SONAR_TOKEN
|
|
|
|
|
|
|
|
|
|
- name: docker-build-and-push
|
|
|
|
|
image: plugins/docker
|
|
|
|
|
settings:
|
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
|
context: .
|
|
|
|
|
registry: hub.codefirst.iut.uca.fr
|
|
|
|
|
mirror: https://proxy.iut.uca.fr:8443
|
|
|
|
|
repo: hub.codefirst.iut.uca.fr/alix.jeudi--lemoine/memorymap_api
|
|
|
|
|
username:
|
|
|
|
|
from_secret: SECRET_REGISTRY_USERNAME
|
|
|
|
|
password:
|
|
|
|
|
from_secret: SECRET_REGISTRY_PASSWORD
|
|
|
|
|
|
|
|
|
|
- name: deploy-database
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
|
environment:
|
|
|
|
@ -57,6 +36,35 @@ steps:
|
|
|
|
|
from_secret: SECRET_MONGODB_PASSWORD
|
|
|
|
|
ADMINS: alixjeudi--lemoine,alexisferon,mathisframit,maxencejouannet
|
|
|
|
|
|
|
|
|
|
- name: code-analysis
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/alix.jeudi--lemoine/codefirst-dronesonarplugin-python312:latest
|
|
|
|
|
environment:
|
|
|
|
|
MONGODB_URL: "mongodb://SAE3A_MemoryMap-mongodb:27017/"
|
|
|
|
|
MONGODB_USERNAME:
|
|
|
|
|
from_secret: SECRET_MONGODB_USERNAME
|
|
|
|
|
MONGODB_PASSWORD:
|
|
|
|
|
from_secret: SECRET_MONGODB_PASSWORD
|
|
|
|
|
MONGODB_DATABASE: memorymap_tests
|
|
|
|
|
commands:
|
|
|
|
|
- /opt/sonar-scanner/bin/sonar-scanner -Dsonar.login=$PLUGIN_SONAR_TOKEN -Dsonar.projectKey=SAE3A_MemoryMap-api -Dsonar.coverageReportPaths="coveragereport/SonarQube.xml" -Dsonar.coverage.exclusions="tests/**" -Dsonar.python.version=3
|
|
|
|
|
settings:
|
|
|
|
|
sonar_token:
|
|
|
|
|
from_secret: SECRET_SONAR_TOKEN
|
|
|
|
|
depends_on: [ deploy-database ]
|
|
|
|
|
|
|
|
|
|
- name: docker-build-and-push
|
|
|
|
|
image: plugins/docker
|
|
|
|
|
settings:
|
|
|
|
|
dockerfile: docker/Dockerfile
|
|
|
|
|
context: .
|
|
|
|
|
registry: hub.codefirst.iut.uca.fr
|
|
|
|
|
mirror: https://proxy.iut.uca.fr:8443
|
|
|
|
|
repo: hub.codefirst.iut.uca.fr/alix.jeudi--lemoine/memorymap_api
|
|
|
|
|
username:
|
|
|
|
|
from_secret: SECRET_REGISTRY_USERNAME
|
|
|
|
|
password:
|
|
|
|
|
from_secret: SECRET_REGISTRY_PASSWORD
|
|
|
|
|
|
|
|
|
|
- name: deploy-api
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
|
environment:
|
|
|
|
|