From 93a7b534e9e6e12ee7275f1ef4d9b27dc23193aa Mon Sep 17 00:00:00 2001 From: gitea_admin Date: Wed, 16 Jul 2025 13:11:00 +0000 Subject: [PATCH] New: .devfile.yaml --- .devfile.yaml | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .devfile.yaml diff --git a/.devfile.yaml b/.devfile.yaml new file mode 100644 index 0000000..0143aa7 --- /dev/null +++ b/.devfile.yaml @@ -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 \ No newline at end of file