Mise à jour de '.drone.yml'
continuous-integration/drone/push Build encountered an error Details

Merge_API_EF^2
Leni BEAULATON 3 weeks ago
parent 100c31b5ff
commit 4506406e46

@ -16,23 +16,23 @@ volumes:
temp: {} temp: {}
steps: steps:
- name: retore & build - name: restore & build
image: mcr.microsoft.com/dotnet/sdk:8.0 image: mcr.microsoft.com/dotnet/sdk:8.0
commands: commands:
- dotnet build WF_EF_Api/WF_EF_Api.sln --configuration Release - dotnet build WF_EF_Api/WF_EF_Api.sln --configuration Release
depend_on: [clone] depends_on: [clone]
- name: test - name: test
image: mcr.microsoft.com/dotnet/sdk:8.0 image: mcr.microsoft.com/dotnet/sdk:8.0
commands: commands:
- dotnet test WF_EF_Api/XUnitTest/XUnitTest.csproj - dotnet test WF_EF_Api/XUnitTest/XUnitTest.csproj
depends_on: [retore & build] depends_on: [restore & build]
- name: publish - name: publish
image: mcr.microsoft.com/dotnet/sdk:8.0 image: mcr.microsoft.com/dotnet/sdk:8.0
commands: commands:
- dotnet publish WF_EF_Api/WfApi/WfApi.csproj -c Release -o out - dotnet publish WF_EF_Api/WfApi/WfApi.csproj -c Release -o out
depends_on: [retore & build, test] depends_on: [restore & build, test]
--- ---
@ -50,19 +50,18 @@ volumes:
- name: doc - name: doc
temp: {} temp: {}
steps: steps:
- name: retore & build - name: restore & build
image: mcr.microsoft.com/dotnet/sdk:8.0 image: mcr.microsoft.com/dotnet/sdk:8.0
commands: commands:
- dotnet build WF_EF_Api/WF_EF_Api.sln --configuration Release - dotnet build WF_EF_Api/WF_EF_Api.sln --configuration Release
depend_on: [clone] depends_on: [clone]
- name: test - name: test
image: mcr.microsoft.com/dotnet/sdk:8.0 image: mcr.microsoft.com/dotnet/sdk:8.0
commands: commands:
- dotnet test WF_EF_Api/XUnitTest/XUnitTest.csproj - dotnet test WF_EF_Api/XUnitTest/XUnitTest.csproj
depends_on: [retore & build] depends_on: [restore & build]
- name: generate doc - name: generate doc
image: mcr.microsoft.com/dotnet/sdk:8.0 image: mcr.microsoft.com/dotnet/sdk:8.0
@ -75,11 +74,12 @@ steps:
- dotnet restore WF_EF_Api/WF_EF_Api.sln - dotnet restore WF_EF_Api/WF_EF_Api.sln
- cd WF_EF_Api/WfApi - cd WF_EF_Api/WfApi
- dotnet nswag aspnetcore2openapi /output:/doc/swagger.json - dotnet nswag aspnetcore2openapi /output:/doc/swagger.json
depends_on: [clone, retore & build] depends_on: [clone, restore & build]
- name: code-inspection - name: code-inspection
image: hub.codefirst.iut.uca.fr/marc.chevaldonne:codefirs-dronsonarplugin-dotnet8 image: hub.codefirst.iut.uca.fr/marc.chevaldonne:codefirs-dronsonarplugin-dotnet8
secret: [SECRET_SONAR_LOGIN] secrets:
- SECRET_SONAR_LOGIN
environment: environment:
sonar_host: https://codefirst.iut.uca.fr/sonar/ sonar_host: https://codefirst.iut.uca.fr/sonar/
sonar_token: sonar_token:
@ -94,24 +94,19 @@ steps:
- dotnet sonarscanner end /d:sonar.login=$${sonar_token} - dotnet sonarscanner end /d:sonar.login=$${sonar_token}
depends_on: [test] depends_on: [test]
- name: publish - name: publish
image: mcr.microsoft.com/dotnet/sdk:8.0 image: mcr.microsoft.com/dotnet/sdk:8.0
commands: commands:
- dotnet publish WF_EF_Api/WfApi/WfApi.csproj -c Release -o out - dotnet publish WF_EF_Api/WfApi/WfApi.csproj -c Release -o out
depends_on: [retore & build, test] depends_on: [restore & build, test]
- name: deploy-api-db - name: deploy-api-db
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
environment: environment:
IMAGENAME: postgres:16.8-alpine3.20 IMAGENAME: postgres:16.8-alpine3.20
CONTAINERNAME: wtf-api CONTAINERNAME: wtf-api
COMMAND: create COMMAND: create
PRIVATE: true PRIVATE: true
#OVERWRITE: true
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_PASSWORD: CODEFIRST_CLIENTDRONE_ENV_POSTGRES_PASSWORD:
from_secret: POSTGRES_PASSWORD_API from_secret: POSTGRES_PASSWORD_API
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_USER: CODEFIRST_CLIENTDRONE_ENV_POSTGRES_USER:
@ -127,7 +122,6 @@ steps:
CONTAINERNAME: wtf-api-auth CONTAINERNAME: wtf-api-auth
COMMAND: create COMMAND: create
PRIVATE: true PRIVATE: true
#OVERWRITE: true
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_PASSWORD: CODEFIRST_CLIENTDRONE_ENV_POSTGRES_PASSWORD:
from_secret: POSTGRES_PASSWORD_AUTH from_secret: POSTGRES_PASSWORD_AUTH
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_USER: CODEFIRST_CLIENTDRONE_ENV_POSTGRES_USER:
@ -136,7 +130,6 @@ steps:
from_secret: POSTGRES_DB_AUTH from_secret: POSTGRES_DB_AUTH
ADMINS: kentinbrongniart,lenibeaulaton ADMINS: kentinbrongniart,lenibeaulaton
- name: deploy-test-db - name: deploy-test-db
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
environment: environment:
@ -144,7 +137,6 @@ steps:
CONTAINERNAME: wtf-api-test CONTAINERNAME: wtf-api-test
COMMAND: create COMMAND: create
PRIVATE: true PRIVATE: true
#OVERWRITE: true
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_PASSWORD: "test" CODEFIRST_CLIENTDRONE_ENV_POSTGRES_PASSWORD: "test"
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_USER: "test" CODEFIRST_CLIENTDRONE_ENV_POSTGRES_USER: "test"
CODEFIRST_CLIENTDRONE_ENV_POSTGRES_DB: "wtf-test" CODEFIRST_CLIENTDRONE_ENV_POSTGRES_DB: "wtf-test"
@ -163,7 +155,6 @@ steps:
from_secret: SECRET_REGISTRY_PASSWORD from_secret: SECRET_REGISTRY_PASSWORD
depends_on: [restore & build, test, code-inspection, publish] depends_on: [restore & build, test, code-inspection, publish]
- name: deploy-container - name: deploy-container
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
environment: environment:
@ -191,6 +182,3 @@ steps:
CODEFIRST_CLIENTDRONE_ENV_DB_DATABASE_API_TEST: "wtf-db-test" CODEFIRST_CLIENTDRONE_ENV_DB_DATABASE_API_TEST: "wtf-db-test"
ADMINS: kentinbrongniart,lenibeaulaton ADMINS: kentinbrongniart,lenibeaulaton
depends_on: [restore & build, test, code-inspection, publish, publish-to-registry] depends_on: [restore & build, test, code-inspection, publish, publish-to-registry]

Loading…
Cancel
Save