|
|
|
@ -35,7 +35,7 @@ steps:
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_ME_CONFIG_BASICAUTH_PASSWORD:
|
|
|
|
|
from_secret: SECRET_MONGODB_PASSWORD
|
|
|
|
|
ADMINS: alixjeudi--lemoine,alexisferon,mathisframit,maxencejouannet
|
|
|
|
|
depends_on: [ deploy-database ]
|
|
|
|
|
depends_on: [deploy-database]
|
|
|
|
|
|
|
|
|
|
- name: code-analysis
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/alix.jeudi--lemoine/codefirst-dronesonarplugin-python312:latest
|
|
|
|
@ -49,12 +49,12 @@ steps:
|
|
|
|
|
commands:
|
|
|
|
|
- apt-get update && apt-get install -y libmagic1
|
|
|
|
|
- pip install -r tests/requirements.txt
|
|
|
|
|
- pytest
|
|
|
|
|
- pytest --cov=app --cov-config=.coveragerc
|
|
|
|
|
- /opt/sonar-scanner/bin/sonar-scanner -Dsonar.login=$PLUGIN_SONAR_TOKEN -Dsonar.projectKey=SAE3A_MemoryMap-api -Dsonar.coverage.exclusions="tests/**" -Dsonar.python.version=3 -Dsonar.python.coverage.reportPaths="coverage.xml"
|
|
|
|
|
settings:
|
|
|
|
|
sonar_token:
|
|
|
|
|
from_secret: SECRET_SONAR_TOKEN
|
|
|
|
|
depends_on: [ deploy-database ]
|
|
|
|
|
depends_on: [deploy-database]
|
|
|
|
|
|
|
|
|
|
- name: docker-build-and-push
|
|
|
|
|
image: plugins/docker
|
|
|
|
@ -68,7 +68,7 @@ steps:
|
|
|
|
|
from_secret: SECRET_REGISTRY_USERNAME
|
|
|
|
|
password:
|
|
|
|
|
from_secret: SECRET_REGISTRY_PASSWORD
|
|
|
|
|
depends_on: [ code-analysis ]
|
|
|
|
|
depends_on: [code-analysis]
|
|
|
|
|
|
|
|
|
|
- name: deploy-api
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
@ -91,4 +91,4 @@ steps:
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_JWT_ACCESS_TOKEN_EXPIRE_MINUTES:
|
|
|
|
|
from_secret: SECRET_JWT_ACCESS_TOKEN_EXPIRE_MINUTES
|
|
|
|
|
ADMINS: alixjeudi--lemoine,alexisferon,mathisframit,maxencejouannet
|
|
|
|
|
depends_on: [ docker-build-and-push ]
|
|
|
|
|
depends_on: [docker-build-and-push]
|
|
|
|
|