kind: pipeline type: docker name: CI trigger: event: - push steps: - name: build image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-dotnet6 commands: # On se positionne dans le dossier du projet - cd WF-WebAdmin/WF-WebAdmin # Restauration des dépendances - dotnet restore WF-WebAdmin.csproj # Compilation en mode Release - dotnet build WF-WebAdmin.csproj -c Release --no-restore # Publication de l'application dans le dossier build/publish du workspace - dotnet publish WF-WebAdmin.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/publish - name: tests 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] - name: analyze 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 /p:RunAnalyzers=true depends_on: [build] - name: docker_build image: plugins/docker settings: repo: hub.codefirst.iut.uca.fr/WhatTheFantasy/WF-WebAdmin registry: hub.codefirst.iut.uca.fr dockerfile: Docker/Dockerfile tags: - latest username: from_secret: docker_username password: from_secret: docker_password depends_on: [build, tests, analyze]