|
|
|
@ -8,7 +8,7 @@ trigger:
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- name: build
|
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:6.0
|
|
|
|
|
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
|
|
|
|
@ -20,7 +20,7 @@ steps:
|
|
|
|
|
- dotnet publish WF-WebAdmin.csproj -c Release --no-restore -o $CI_PROJECT_DIR/build/publish
|
|
|
|
|
|
|
|
|
|
- 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
|
|
|
|
@ -28,7 +28,7 @@ steps:
|
|
|
|
|
depends_on: [build]
|
|
|
|
|
|
|
|
|
|
- name: analyze
|
|
|
|
|
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
|
|
|
|
@ -39,8 +39,8 @@ steps:
|
|
|
|
|
- name: docker_build
|
|
|
|
|
image: plugins/docker
|
|
|
|
|
settings:
|
|
|
|
|
repo: hub.codefirst.iut.uca.fr/marc.chevaldonne/wf-webadmin
|
|
|
|
|
registry: hub.codefirst.iut.uca.fr # S'assure que le push se fait vers le bon registry
|
|
|
|
|
repo: hub.codefirst.iut.uca.fr/WhatTheFantasy/WF-WebAdmin
|
|
|
|
|
registry: hub.codefirst.iut.uca.fr
|
|
|
|
|
dockerfile: Docker/Dockerfile
|
|
|
|
|
tags:
|
|
|
|
|
- latest
|
|
|
|
|