Skip to main content

Base

The base template contains a build stage. It is used so .NET version configuration can be done centrally

Getting started​

Add the following to your .gitlab-ci.yml

.gitlab-ci.yml
include:
- project: "abfelbaum/ci"
file: "templates/dotnet/base.yml"

dotnet:base:
extends: .dotnet:base
note

The base template has no script so it will do anything without modification.

Configuration​

The template inherits all configuration options from base.

Additionally the following has to be configured

VariableDefault valueDescription
DOTNET_PROJECT_PATHnoneThe project file to build
DOTNET_BUILD_PATHbuildThe path where to put the build output
DOTNET_PUBLISH_PATHpublishThe path where to put the publish output
DOTNET_PACK_PATHpackThe path where to put the generated .nupkg files
DOTNET_IMAGE_TAGltsThe container image tag to be used
DOTNET_IMAGE_NAMEregistry.git.abfelbaum.dev/abfelbaum/images/dotnet/sdkThe container image name to be used