Mise à jour de '.drone.yml'
continuous-integration/drone/push Build is passing Details

WebAPI
Patrick BRUGIERE 1 year ago
parent 0ad30fd909
commit 48fb818d39

@ -43,27 +43,27 @@ steps:
- dotnet sonarscanner end /d:sonar.login=$${sonar_token} - dotnet sonarscanner end /d:sonar.login=$${sonar_token}
depends_on: [tests] depends_on: [tests]
# - name: swagger - name: swagger
# image: mcr.microsoft.com/dotnet/sdk:8.0 image: mcr.microsoft.com/dotnet/sdk:8.0
# failure: ignore failure: ignore
# volumes: volumes:
# - name: docs - name: docs
# path: /docs path: /docs
# environment: environment:
# CODEFIRST_CLIENTDRONE_ENV_DOTNET_ROLL_FORWARD: LatestMajor CODEFIRST_CLIENTDRONE_ENV_DOTNET_ROLL_FORWARD: LatestMajor
# CODEFIRST_CLIENTDRONE_ENV_DOTNET_ROLL_FORWARD_TO_PRERELEASE: 1 CODEFIRST_CLIENTDRONE_ENV_DOTNET_ROLL_FORWARD_TO_PRERELEASE: 1
# commands: commands:
# - cd Project/EntityFramework - cd Project/EntityFramework
# - dotnet restore webAPI.sln - dotnet restore webAPI.sln
# - cd API - cd API
# - dotnet new tool-manifest - dotnet new tool-manifest
# - dotnet tool install -g --version 13.6.0 NSwag.Tool - dotnet tool install -g --version 6.5.0 Swashbuckle.AspNetCore.Cli
# - cd ../ - cd ../
# - dotnet build webAPI.sln -c Release --no-restore - dotnet build webAPI.sln -c Release --no-restore
# - dotnet publish webAPI.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release - dotnet publish webAPI.sln -c Release --no-restore -o $CI_PROJECT_DIR/build/release
# - export PATH="$PATH:/root/.dotnet/tools" - export PATH="$PATH:/root/.dotnet/tools"
# - nswag aspnetcore2swagger /assembly:API/bin/Release/net8.0/API.dll /output:/docs/swagger.json - swagger tofile --output /docs/swagger.json API/bin/Release/net8.0/API.dll v1
# depends_on: [build,tests] depends_on: [build,tests]
- name: generate-and-deploy-docs - name: generate-and-deploy-docs
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer

Loading…
Cancel
Save