Files
Workspace/devfile.yaml

65 lines
1.8 KiB
YAML

schemaVersion: 2.2.2
metadata:
name: dotnet-9
displayName: .NET 9
description: .NET 9 application
icon: https://github.com/dotnet/brand/raw/main/logo/dotnet-logo.png
tags:
- .NET
- .NET Core App 9
projectType: dotnet
language: .NET
version: 1.0.0
starterProjects:
- name: oqtaneframework
git:
checkoutFrom:
remote: origin
revision: main
remotes:
origin: https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/oqtane.framework
subDir: oqtaneframework
components:
- name: dotnet
container:
image: git.kocoder.xyz/diplomarbeit-absolventenverein/workspaces/dotnet:ubi9-net90.1
args: ["tail", "-f", "/dev/null"]
mountSources: true
env:
- name: CONFIGURATION
value: Debug
- name: STARTUP_PROJECT
value: Oqtane.Server.csproj
- name: ASPNETCORE_ENVIRONMENT
value: Development
- name: ASPNETCORE_URLS
value: http://*:5000
endpoints:
- name: https-dotnet
protocol: https
targetPort: 5000
commands:
- id: build
exec:
workingDir: ${PROJECT_SOURCE}
commandLine: kill $(pidof dotnet); dotnet build -c $CONFIGURATION $STARTUP_PROJECT /p:UseSharedCompilation=false
component: dotnet
group:
isDefault: true
kind: build
- id: run
exec:
workingDir: ${PROJECT_SOURCE}
commandLine: dotnet run -c $CONFIGURATION --no-build --project $STARTUP_PROJECT --no-launch-profile
component: dotnet
group:
isDefault: true
kind: run
- id: release
exec:
workingDir: ${PROJECT_SOURCE}
commandLine: dotnet build -c RELEASE Oqtane.sln && dotnet publish -c RELEASE Oqtane.Server/Oqtane.Server.csproj -o ./publish
component: dotnet
group:
isDefault: true
kind: deploy