|
|
|
@ -1,8 +1,10 @@
|
|
|
|
|
kind: pipeline
|
|
|
|
|
type: docker
|
|
|
|
|
name: default
|
|
|
|
|
name: API
|
|
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
|
branch:
|
|
|
|
|
- WebAPI
|
|
|
|
|
event:
|
|
|
|
|
- push
|
|
|
|
|
|
|
|
|
@ -60,24 +62,46 @@ steps:
|
|
|
|
|
- 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"
|
|
|
|
|
- mkdir -p $HOME/dotnet && tar zxf dotnet-hosting-7.0.17-win.exe -C $HOME/dotnet
|
|
|
|
|
- export DOTNET_ROOT=$HOME/dotnet
|
|
|
|
|
- export PATH=$PATH:$HOME/dotnet
|
|
|
|
|
- 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
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/maxime.batista/codefirst-docdeployer
|
|
|
|
|
failure: ignore
|
|
|
|
|
volumes:
|
|
|
|
|
- name: docs
|
|
|
|
|
path: /docs
|
|
|
|
|
commands:
|
|
|
|
|
- /entrypoint.sh
|
|
|
|
|
- /entrypoint.sh -l docs/doxygen -t doxygen
|
|
|
|
|
when:
|
|
|
|
|
branch:
|
|
|
|
|
- WebAPI
|
|
|
|
|
event:
|
|
|
|
|
- push
|
|
|
|
|
depends_on: [ build ]
|
|
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
|
- name: docs
|
|
|
|
|
temp: {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kind: pipeline
|
|
|
|
|
type: docker
|
|
|
|
|
name: API-CD
|
|
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
|
event:
|
|
|
|
|
- push
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
|
|
- name: docker-build-and-push
|
|
|
|
|
image: plugins/docker
|
|
|
|
|
settings:
|
|
|
|
|
dockerfile: Project/EntityFramework/API/Dockerfile
|
|
|
|
|
context: Project/EntityFramework/
|
|
|
|
|
registry: hub.codefirst.iut.uca.fr
|
|
|
|
|
repo: hub.codefirst.iut.uca.fr/antoine.jourdain/sae_2a_anglais
|
|
|
|
|
username:
|
|
|
|
|
from_secret: SECRET_REGISTRY_USERNAME
|
|
|
|
|
password:
|
|
|
|
|
from_secret: SECRET_REGISTRY_PASSWORD
|
|
|
|
|
|
|
|
|
|
- name: deploy-container-mysql
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
@ -97,17 +121,6 @@ steps:
|
|
|
|
|
from_secret: db_password
|
|
|
|
|
ADMINS: antoinejourdain,patrickbrugiere,luciegoigoux,marcchevaldonne
|
|
|
|
|
|
|
|
|
|
- name: docker-build-and-push
|
|
|
|
|
image: plugins/docker
|
|
|
|
|
settings:
|
|
|
|
|
dockerfile: Project/EntityFramework/API/Dockerfile
|
|
|
|
|
context: Project/EntityFramework/
|
|
|
|
|
registry: hub.codefirst.iut.uca.fr
|
|
|
|
|
repo: hub.codefirst.iut.uca.fr/antoine.jourdain/sae_2a_anglais
|
|
|
|
|
username:
|
|
|
|
|
from_secret: SECRET_REGISTRY_USERNAME
|
|
|
|
|
password:
|
|
|
|
|
from_secret: SECRET_REGISTRY_PASSWORD
|
|
|
|
|
|
|
|
|
|
- name: deploy-container
|
|
|
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dockerproxy-clientdrone:latest
|
|
|
|
|