diff --git a/.drone.yml b/.drone.yml index 5a63195..41e27cc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,7 +32,7 @@ steps: commands: - cd Sources/ - dotnet restore OpenLibraryWS_Wrapper.sln - - dotnet sonarscanner begin /k:TP1-Marc-THIERY /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="Tests/**" /d:sonar.login=$${PLUGIN_SONAR_TOKEN} + - dotnet sonarscanner begin /k:Dotnet_Dorian_HODIN /d:sonar.host.url=$${PLUGIN_SONAR_HOST} /d:sonar.coverageReportPaths="coveragereport/SonarQube.xml" /d:sonar.coverage.exclusions="Tests/**" /d:sonar.login=$${PLUGIN_SONAR_TOKEN} - dotnet build OpenLibraryWS_Wrapper.sln -c Release --no-restore - dotnet test OpenLibraryWS_Wrapper.sln --logger trx --no-restore /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura --collect "XPlat Code Coverage" - reportgenerator -reports:"**/coverage.cobertura.xml" -reporttypes:SonarQube -targetdir:"coveragereport" @@ -69,11 +69,11 @@ steps: - /entrypoint.sh --type swagger --loc /drone/src/swagger.json depends_on: [generate-swashbuckle] - # - name: hadolint - # image: hadolint/hadolint:latest-debian - # commands: - # - cd Sources - # - hadolint -i DL3059 Dockerfile + - name: hadolint + image: hadolint/hadolint:latest-debian + commands: + - cd Sources + - hadolint -i DL3059 Dockerfile - name: docker-build-and-push image: plugins/docker @@ -81,7 +81,7 @@ steps: dockerfile: Sources/Dockerfile context: Sources/ registry: hub.codefirst.iut.uca.fr - repo: hub.codefirst.iut.uca.fr/dorian.hodin/tmp + repo: hub.codefirst.iut.uca.fr/dorian.hodin/openlibraryws_wrapper username: from_secret: SECRET_REGISTRY_USERNAME password: @@ -91,7 +91,7 @@ steps: - name: deploy-container image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest environment: - IMAGENAME: hub.codefirst.iut.uca.fr/dorian.hodin/tmp:latest + IMAGENAME: hub.codefirst.iut.uca.fr/dorian.hodin/openlibraryws_wrapper CONTAINERNAME: container-marc COMMAND: create OVERWRITE: true