|
|
|
@ -41,27 +41,27 @@ steps:
|
|
|
|
|
- dotnet sonarscanner end /d:sonar.login=$${sonar_token}
|
|
|
|
|
depends_on: [tests]
|
|
|
|
|
|
|
|
|
|
- name: swagger
|
|
|
|
|
image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
|
|
|
failure: ignore
|
|
|
|
|
volumes:
|
|
|
|
|
- name: docs
|
|
|
|
|
path: /docs
|
|
|
|
|
environment:
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_DOTNET_ROLL_FORWARD: LatestMajor
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_DOTNET_ROLL_FORWARD_TO_PRERELEASE: 1
|
|
|
|
|
commands:
|
|
|
|
|
- cd Project/EntityFramework
|
|
|
|
|
- dotnet restore webAPI.sln
|
|
|
|
|
- cd API
|
|
|
|
|
- dotnet new tool-manifest
|
|
|
|
|
- dotnet tool install -g --version 6.5.0 Swashbuckle.AspNetCore.Cli
|
|
|
|
|
- cd ../
|
|
|
|
|
- dotnet build webAPI.sln -c Release --no-restore
|
|
|
|
|
- dotnet publish webAPI.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
|
|
|
|
|
- export PATH="$PATH:/root/.dotnet/tools"
|
|
|
|
|
- swagger tofile --output /docs/swagger.json API/bin/Release/net8.0/API.dll v1
|
|
|
|
|
depends_on: [build,tests]
|
|
|
|
|
# - name: swagger
|
|
|
|
|
# image: mcr.microsoft.com/dotnet/sdk:8.0
|
|
|
|
|
# failure: ignore
|
|
|
|
|
# volumes:
|
|
|
|
|
# - name: docs
|
|
|
|
|
# path: /docs
|
|
|
|
|
# environment:
|
|
|
|
|
# CODEFIRST_CLIENTDRONE_ENV_DOTNET_ROLL_FORWARD: LatestMajor
|
|
|
|
|
# CODEFIRST_CLIENTDRONE_ENV_DOTNET_ROLL_FORWARD_TO_PRERELEASE: 1
|
|
|
|
|
# commands:
|
|
|
|
|
# - cd Project/EntityFramework
|
|
|
|
|
# - dotnet restore webAPI.sln
|
|
|
|
|
# - cd API
|
|
|
|
|
# - dotnet new tool-manifest
|
|
|
|
|
# - dotnet tool install -g --version 6.5.0 Swashbuckle.AspNetCore.Cli
|
|
|
|
|
# - cd ../
|
|
|
|
|
# - dotnet build webAPI.sln -c Release --no-restore
|
|
|
|
|
# - dotnet publish webAPI.sln -c Release --no-restore -o CI_PROJECT_DIR/build/release
|
|
|
|
|
# - export PATH="$PATH:/root/.dotnet/tools"
|
|
|
|
|
# - swagger tofile --output /docs/swagger.json API/bin/Release/net8.0/API.dll v1
|
|
|
|
|
# depends_on: [build,tests]
|
|
|
|
|
|
|
|
|
|
- name: generate-and-deploy-docs
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer
|
|
|
|
@ -113,3 +113,13 @@ steps:
|
|
|
|
|
CONTAINERNAME: api_container
|
|
|
|
|
COMMAND: create
|
|
|
|
|
OVERWRITE: true
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_DB_SERVER:
|
|
|
|
|
from_secret: db_server
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_DB_USER:
|
|
|
|
|
from_secret: db_user
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_DB_PASSWORD:
|
|
|
|
|
from_secret: db_password
|
|
|
|
|
CODEFIRST_CLIENTDRONE_ENV_DB_DATABASE:
|
|
|
|
|
from_secret: db_database
|
|
|
|
|
ADMINS: antoinejourdain,patrickbrugiere,luciegoigoux,marcchevaldonne
|
|
|
|
|
depends_on: [ deploy-container-mysql, docker-build-and-push ]
|