From 0ad30fd90975974d3338c669d369b3cb8f783eb7 Mon Sep 17 00:00:00 2001 From: Patrick BRUGIERE Date: Wed, 3 Apr 2024 08:15:47 +0200 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 | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5c8bb46..cc84c1e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -43,27 +43,27 @@ steps: - dotnet sonarscanner end /d:sonar.login=$${sonar_token} depends_on: [tests] - - name: swagger - image: mcr.microsoft.com/dotnet/sdk:8.0 - failure: ignore - volumes: - - name: docs - path: /docs - environment: - CODEFIRST_CLIENTDRONE_ENV_DOTNET_ROLL_FORWARD: LatestMajor - CODEFIRST_CLIENTDRONE_ENV_DOTNET_ROLL_FORWARD_TO_PRERELEASE: 1 - commands: - - cd Project/EntityFramework - - dotnet restore webAPI.sln - - cd API - - dotnet new tool-manifest - - dotnet tool install -g --version 13.6.0 NSwag.Tool - - cd ../ - - dotnet build webAPI.sln -c Release --no-restore - - dotnet publish webAPI.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release - - export PATH="$PATH:/root/.dotnet/tools" - - nswag aspnetcore2swagger /assembly:API/bin/Release/net8.0/API.dll /output:/docs/swagger.json - depends_on: [build,tests] + # - name: swagger + # image: mcr.microsoft.com/dotnet/sdk:8.0 + # failure: ignore + # volumes: + # - name: docs + # path: /docs + # environment: + # CODEFIRST_CLIENTDRONE_ENV_DOTNET_ROLL_FORWARD: LatestMajor + # CODEFIRST_CLIENTDRONE_ENV_DOTNET_ROLL_FORWARD_TO_PRERELEASE: 1 + # commands: + # - cd Project/EntityFramework + # - dotnet restore webAPI.sln + # - cd API + # - dotnet new tool-manifest + # - dotnet tool install -g --version 13.6.0 NSwag.Tool + # - cd ../ + # - dotnet build webAPI.sln -c Release --no-restore + # - dotnet publish webAPI.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release + # - export PATH="$PATH:/root/.dotnet/tools" + # - nswag aspnetcore2swagger /assembly:API/bin/Release/net8.0/API.dll /output:/docs/swagger.json + # depends_on: [build,tests] - name: generate-and-deploy-docs image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer