From 0cacb3a3ed146052be4403dfdf2e572962517756 Mon Sep 17 00:00:00 2001 From: Leni BEAULATON Date: Wed, 2 Apr 2025 17:19:19 +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 | 162 ++++++++++++++++++++++++++--------------------------- 1 file changed, 81 insertions(+), 81 deletions(-) diff --git a/.drone.yml b/.drone.yml index ed13d1e..668adb6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,82 +1,82 @@ -kind: pipeline -type: docker -name: CI_ApiPm - -trigger: - event: - - push - branch: - exclude: - - master - -steps: - - name: retore & build - image: mcr.microsoft.com/dotnet/sdk:8.0 - commands: - - dotnet build --configuration Release - depend_on: [clone] - - - name: test - image: mcr.microsoft.com/dotnet/sdk:8.0 - commands: - - dotnet test - depends_on: [retore & build] - - - name: publish - image: mcr.microsoft.com/dotnet/sdk:8.0 - commands: - - dotnet publish -c Release -o out - depends_on: [retore & build, test] - ---- - -kind: pipeline -type: docker -name: CI_ApiPm_Master - -trigger: - event: - - push - branch: - - master - -volumes: - - name: doc - temp: {} - - -steps: - - name: retore & build - image: mcr.microsoft.com/dotnet/sdk:8.0 - commands: - - dotnet build --configuration Release - depend_on: [clone] - - - name: test - image: mcr.microsoft.com/dotnet/sdk:8.0 - commands: - - dotnet test - depends_on: [retore & build] - - - name: generate doc - image: mcr.microsoft.com/dotnet/sdk:8.0 - volumes: - - name: doc - path: /doc - commands: - - dotnet new tool-manifest - - dotnet tool install NSwag.ConsoleCore - - dotnet restore - - cd WF_EF_Api/WfApi - - dotnet nswag aspnetcore2openapi /output:/doc/swagger.json - depends_on: [clone, retore & build] - - #- name: code-inspection - # image: hub.codefirst.iut.uca.fr/marc.chevaldonne:codefirs-dronsonarplugin-dotnet8 - # secret: [SECRET_SONAR_LOGIN] - # A FINIR - - name: publish - image: mcr.microsoft.com/dotnet/sdk:8.0 - commands: - - dotnet publish -c Release -o out +kind: pipeline +type: docker +name: CI_ApiPm + +trigger: + event: + - push + branch: + exclude: + - master + +steps: + - name: retore & build + image: mcr.microsoft.com/dotnet/sdk:8.0 + commands: + - dotnet build WF_EF_Api/WF_EF_Api.sln --configuration Release + depend_on: [clone] + + - name: test + image: mcr.microsoft.com/dotnet/sdk:8.0 + commands: + - dotnet test + depends_on: [retore & build] + + - name: publish + image: mcr.microsoft.com/dotnet/sdk:8.0 + commands: + - dotnet publish -c Release -o out + depends_on: [retore & build, test] + +--- + +kind: pipeline +type: docker +name: CI_ApiPm_Master + +trigger: + event: + - push + branch: + - master + +volumes: + - name: doc + temp: {} + + +steps: + - name: retore & build + image: mcr.microsoft.com/dotnet/sdk:8.0 + commands: + - dotnet build --configuration Release + depend_on: [clone] + + - name: test + image: mcr.microsoft.com/dotnet/sdk:8.0 + commands: + - dotnet test + depends_on: [retore & build] + + - name: generate doc + image: mcr.microsoft.com/dotnet/sdk:8.0 + volumes: + - name: doc + path: /doc + commands: + - dotnet new tool-manifest + - dotnet tool install NSwag.ConsoleCore + - dotnet restore + - cd WF_EF_Api/WfApi + - dotnet nswag aspnetcore2openapi /output:/doc/swagger.json + depends_on: [clone, retore & build] + + #- name: code-inspection + # image: hub.codefirst.iut.uca.fr/marc.chevaldonne:codefirs-dronsonarplugin-dotnet8 + # secret: [SECRET_SONAR_LOGIN] + # A FINIR + - name: publish + image: mcr.microsoft.com/dotnet/sdk:8.0 + commands: + - dotnet publish -c Release -o out depends_on: [retore & build, test] \ No newline at end of file