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.
34 lines
801 B
34 lines
801 B
kind: pipeline
|
|
type: docker
|
|
name: blazor
|
|
trigger:
|
|
event:
|
|
- push
|
|
|
|
steps:
|
|
- name: build
|
|
image: mcr.microsoft.com/dotnet/sdk:6.0
|
|
commands:
|
|
- cd myBlazorApp/
|
|
- dotnet restore myBlazorApp.sln
|
|
- dotnet build myBlazorApp.sln -c Release --no-restore
|
|
|
|
- name: tests
|
|
image: mcr.microsoft.com/dotnet/sdk:6.0
|
|
commands:
|
|
- cd myBlazorApp/
|
|
- dotnet restore myBlazorApp.sln
|
|
- dotnet test myBlazorApp.sln --no-restore
|
|
depends_on: [build]
|
|
|
|
- name: docker-build
|
|
image: plugins/docker
|
|
settings:
|
|
dockerfile: myBlazorApp/myBlazorApp/Dockerfile
|
|
context: .
|
|
registry: hub.codefirst.iut.uca.fr
|
|
repo: hub.codefirst.iut.uca.fr/libreton/myBlazorApp
|
|
username:
|
|
libreton
|
|
password:
|
|
Li17br51&* |