From 23e846a4537b509675005e5ca5b16a053c288caa Mon Sep 17 00:00:00 2001 From: Nicolas FRANCO Date: Tue, 22 Nov 2022 09:50:47 +0100 Subject: [PATCH] documentation job and volumes added to .drone.yml --- BlazorTp1/.drone.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/BlazorTp1/.drone.yml b/BlazorTp1/.drone.yml index bb2e6e6..09c8d70 100644 --- a/BlazorTp1/.drone.yml +++ b/BlazorTp1/.drone.yml @@ -7,6 +7,7 @@ trigger: - push steps: + # build job - name: build image: mcr.microsoft.com/dotnet/sdk:6.0 commands: @@ -14,6 +15,7 @@ steps: - dotnet restore BlazorTp1.sln - dotnet build BlazorTp1.sln -c Release --no-restore + # test job - name: tests image: mcr.microsoft.com/dotnet/sdk:6.0 commands: @@ -22,6 +24,7 @@ steps: - dotnet test BlazorTp1.sln --no-restore depends_on: [build] + # analysis job - name: code-analysis image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-dotnet6 commands: @@ -42,6 +45,7 @@ steps: from_secret: SECRET_SONAR_LOGIN depends_on: [tests] + # cd job - name: docker-build image: plugins/docker settings: @@ -56,11 +60,30 @@ steps: when: branch: - master - + + # container deployement - name: deploy-container image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest environment: IMAGENAME: hub.codefirst.iut.uca.fr/nicolas.franco/Tp_blazor:latest CONTAINERNAME: blazor_container COMMAND: create - OVERWRITE: true \ No newline at end of file + 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: {} \ No newline at end of file