roll back
continuous-integration/drone/push Build encountered an error Details

pull/29/head
Maxime ROCHER 3 months ago
parent 0af5d95878
commit 21acb505ef

@ -1,31 +1,28 @@
kind: pipeline
name: CI
type: docker
name: CI
trigger:
event:
- push
steps:
# 1. BUILD
- name: build
image: mcr.microsoft.com/dotnet/sdk:6.0
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-dotnet6
commands:
- cd WF-WebAdmin/WF-WebAdmin
- dotnet restore WF-WebAdmin.csproj
- dotnet build WF-WebAdmin.csproj -c Release --no-restore
- dotnet publish WF-WebAdmin.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/publish
# 2. TESTS
- name: tests
image: mcr.microsoft.com/dotnet/sdk:6.0
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-dotnet6
commands:
- cd WF-WebAdmin/WF-WebAdmin
- dotnet restore WF-WebAdmin.csproj
- dotnet test WF-WebAdmin.csproj --no-restore
depends_on: [ build ]
# 3. CODE ANALYSIS (SONARQUBE) - Exemple, si tu utilises Sonar
- name: code-analysis
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-dotnet8
commands:
@ -46,7 +43,6 @@ steps:
coverage_exclusions: "Tests/**"
depends_on: [tests]
# 4. GÉNÉRATION ET DÉPLOIEMENT DE DOCS (optionnel)
- name: generate-and-deploy-docs
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer
failure: ignore
@ -60,7 +56,6 @@ steps:
- master
depends_on: [ build ]
# 5. BUILD DE L'IMAGE DOCKER ET PUSH
- name: docker_build
image: plugins/docker
settings:
@ -75,17 +70,15 @@ steps:
from_secret: docker_password
depends_on: [ build, tests, code-analysis ]
# 6. DEPLOY
- name: deploy
image: hub.codefirst.iut.uca.fr/whatthefantasy/wf-webadmin:latest
commands:
- ls /app
- dotnet /app/WF-WebAdmin.dll
image:
environment:
IMAGENAME: hub.codefirst.iut.uca.fr/whatthefantasy/wf-webadmin
CONTAINERNAME: WF-WebAdmin
COMMAND: create
OVERWRITE: true
ADMINS: maximerocher,kevinmondejar,lenibeaulaton,kentinbrongniart,tommynguyen
when:
branch:
- master
depends_on: [ docker_build ]
volumes:
- name: docs
temp: {}

Loading…
Cancel
Save