New: .devfile.yaml
This commit is contained in:
65
.devfile.yaml
Normal file
65
.devfile.yaml
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
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: oqtane.framework
|
||||||
|
git:
|
||||||
|
checkoutFrom:
|
||||||
|
remote: origin
|
||||||
|
revision: main
|
||||||
|
remotes:
|
||||||
|
origin: https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/oqtane.framework
|
||||||
|
subDir: oqtane.framework
|
||||||
|
components:
|
||||||
|
- name: dotnet
|
||||||
|
container:
|
||||||
|
image: registry.access.redhat.com/ubi8/dotnet-90@sha256:05304858c5358d11a4f6fd75264d0c6e43d52450d6c0e106f3c1c816ac52ad72
|
||||||
|
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
|
Reference in New Issue
Block a user