parent
6584bf6caf
commit
a5b6fac9a6
@ -1,23 +1,82 @@
|
|||||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: CI_ApiPm
|
||||||
|
|
||||||
volumes:
|
trigger:
|
||||||
- name: docs
|
event:
|
||||||
path: /docs
|
- push
|
||||||
|
branch:
|
||||||
|
exclude:
|
||||||
|
- master
|
||||||
|
|
||||||
- dotnet new tool-manifest
|
steps:
|
||||||
- dotnet tool install NSwag.ConsoleCore
|
- name: retore & build
|
||||||
- dotnet nswag aspnetcore2openapi /output:/docs/swagger.json
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
|
commands:
|
||||||
|
- dotnet build --configuration Release
|
||||||
|
depend_on: [clone]
|
||||||
|
|
||||||
volumes:
|
- name: test
|
||||||
- name: docs
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||||
temp: {}
|
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
|
||||||
|
|
||||||
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: docs
|
- name: doc
|
||||||
path: /docs
|
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]
|
||||||
|
|
||||||
commands:
|
- name: generate doc
|
||||||
- /entrypoint.sh
|
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]
|
||||||
|
|
||||||
depends_on: [ previous_job_name ]
|
#- 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]
|
Loading…
Reference in new issue