From f0d5fb9b2604a052547f7c980f5ffbfb63743dce Mon Sep 17 00:00:00 2001
From: Pierre Ferreira
Date: Sun, 26 Feb 2023 14:55:08 +0100
Subject: [PATCH] :green_heart: ajout de l'image de build dans la CI :bento:
---
.drone.yml | 28 ++++++++++++++++++++--------
1 file changed, 20 insertions(+), 8 deletions(-)
diff --git a/.drone.yml b/.drone.yml
index b773b1b..94a89f2 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -7,19 +7,31 @@ trigger:
- push
steps:
+
+ - name: build
+ image: mcr.microsoft.com/dotnet/sdk:6.0
+ volumes:
+ - name: docs
+ path: /docs
+ commands:
+ - cd Sources/
+ - dotnet restore LeagueOfLegends.sln
+ - dotnet build LeagueOfLegends.sln -c Release --no-restore
+ - dotnet publish LeagueOfLegends.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
+
# docker image build
- name: docker-build-and-push
image: plugins/docker
settings:
- dockerfile: Sources/API_LoL/Dockerfile
- context: Sources/
- registry: hub.codefirst.iut.uca.fr
- repo: hub.codefirst.iut.uca.fr/corentin.richard/entityframework_consodeservices_tp
+ dockerfile: Sources/API_LoL/Dockerfile
+ context: Sources/
+ registry: hub.codefirst.iut.uca.fr
+ repo: hub.codefirst.iut.uca.fr/corentin.richard/entityframework_consodeservices_tp
- username:
- from_secret: SECRET_REGISTRY_USERNAME
- password:
- from_secret: SECRET_REGISTRY_PASSWORD
+ username:
+ from_secret: SECRET_REGISTRY_USERNAME
+ password:
+ from_secret: SECRET_REGISTRY_PASSWORD
# docker test
- name: tests