|
|
|
@ -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
|
|
|
|
|