documentation job and volumes added to .drone.yml

master
Nicolas FRANCO 2 years ago
parent dbde8b52fd
commit 23e846a453

@ -7,6 +7,7 @@ trigger:
- push - push
steps: steps:
# build job
- name: build - name: build
image: mcr.microsoft.com/dotnet/sdk:6.0 image: mcr.microsoft.com/dotnet/sdk:6.0
commands: commands:
@ -14,6 +15,7 @@ steps:
- dotnet restore BlazorTp1.sln - dotnet restore BlazorTp1.sln
- dotnet build BlazorTp1.sln -c Release --no-restore - dotnet build BlazorTp1.sln -c Release --no-restore
# test job
- name: tests - name: tests
image: mcr.microsoft.com/dotnet/sdk:6.0 image: mcr.microsoft.com/dotnet/sdk:6.0
commands: commands:
@ -22,6 +24,7 @@ steps:
- dotnet test BlazorTp1.sln --no-restore - dotnet test BlazorTp1.sln --no-restore
depends_on: [build] depends_on: [build]
# analysis job
- name: code-analysis - name: code-analysis
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-dotnet6 image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-dotnet6
commands: commands:
@ -42,6 +45,7 @@ steps:
from_secret: SECRET_SONAR_LOGIN from_secret: SECRET_SONAR_LOGIN
depends_on: [tests] depends_on: [tests]
# cd job
- name: docker-build - name: docker-build
image: plugins/docker image: plugins/docker
settings: settings:
@ -57,6 +61,7 @@ steps:
branch: branch:
- master - master
# container deployement
- name: deploy-container - name: deploy-container
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
environment: environment:
@ -64,3 +69,21 @@ steps:
CONTAINERNAME: blazor_container CONTAINERNAME: blazor_container
COMMAND: create COMMAND: create
OVERWRITE: true OVERWRITE: true
# documentation job
- name: generate-and-deploy-docs
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer
failure: ignore
volumes:
- name: docs
path: /docs
commands:
- /entrypoint.sh
when:
branch:
- master
depends_on: [ build ]
volumes:
- name: docs
temp: {}
Loading…
Cancel
Save