From 231e33bdef3818f06efa895526abab01f313f7fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20DUPIN?= Date: Tue, 7 Mar 2023 20:48:20 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/.drone.yml b/.drone.yml index faea882..4c07b9b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,15 +13,16 @@ steps: - dotnet restore LeagueOfLegends.sln - dotnet build LeagueOfLegends.sln -c Release --no-restore - dotnet publish LeagueOfLegends.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release + depends_on: [] -- name: tests + - name: tests image: mcr.microsoft.com/dotnet/sdk:6.0 commands: - dotnet restore LeagueOfLegends.sln - dotnet test LeagueOfLegends.sln --no-restore depends_on: [build] -- name: code-analysis + - name: code-analysis image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet7 commands: - dotnet restore LeagueOfLegends.sln @@ -33,27 +34,25 @@ steps: - dotnet sonarscanner end /d:sonar.login=$${PLUGIN_SONAR_TOKEN} secrets: [ SECRET_SONAR_LOGIN ] settings: - # accessible en ligne de commande par $${PLUGIN SONAR HOST} sonar_host: https://codefirst.iut.uca.fr/sonar/ -# accessible en ligne de commande par $${PLUGIN_SONAR_TOKEN} sonar_token: from_secret: SECRET_SONAR_LOGIN - depends on: [tests] + depends_on: [tests] -# docker image build - name: docker-build-and-push image: plugins/docker settings: - dockerfile: Dockerfile - context: Web_Api - registry: hub.codefirst.iut.uca.fr - repo: hub.codefirst.iut.uca.fr/theo.dupin/Entity_Framework_Theo - username: - from_secret: SECRET_REGISTRY_USERNAME - password: - from_secret: SECRET_REGISTRY_PASSWORD + dockerfile: Dockerfile + context: Web_Api + registry: hub.codefirst.iut.uca.fr + repo: hub.codefirst.iut.uca.fr/theo.dupin/Entity_Framework_Theo + username: + from_secret: SECRET_REGISTRY_USERNAME + password: + from_secret: SECRET_REGISTRY_PASSWORD + depends_on: [code-analysis] volumes: -- name: docs - temp: {} + - name: docs + temp: {}