You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.2 KiB
55 lines
1.2 KiB
kind: pipeline
|
|
type: docker
|
|
name: default
|
|
|
|
trigger:
|
|
event:
|
|
- push
|
|
|
|
steps:
|
|
- name: build
|
|
image: mcr.microsoft.com/dotnet/sdk:6.0
|
|
commands:
|
|
- cd Code/
|
|
- dotnet restore BlazorApp.sln
|
|
- dotnet build BlazorApp.sln -c Release --no-restore
|
|
|
|
- name: tests
|
|
image: mcr.microsoft.com/dotnet/sdk:6.0
|
|
commands:
|
|
- cd Code/
|
|
- dotnet restore BlazorApp.sln
|
|
- dotnet test BlazorApp.sln --no-restore
|
|
depends_on: [build]
|
|
|
|
- name: generate-and-deploy-docs
|
|
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-docdeployer
|
|
failure: ignore
|
|
volumes:
|
|
- name: docs
|
|
path: /docs
|
|
commands:
|
|
- /entrypoint.sh
|
|
when:
|
|
branch:
|
|
- master
|
|
depends_on: [ build ]
|
|
|
|
- name: docker-build
|
|
image: plugins/docker
|
|
settings:
|
|
dockerfile: Code/ProjetBlazor/Dockerfile
|
|
context: .
|
|
registry: hub.codefirst.iut.uca.fr
|
|
repo: hub.codefirst.iut.uca.fr/dorian.hodin/projetblazor
|
|
username:
|
|
from_secret: SECRET_REGISTRY_USERNAME
|
|
password:
|
|
from_secret: SECRET_REGISTRY_PASSWORD
|
|
when:
|
|
branch:
|
|
- master
|
|
|
|
volumes:
|
|
- name: docs
|
|
temp: {} |