From aa31d675bf30e64e8aace48586f93f2698aafbd1 Mon Sep 17 00:00:00 2001 From: KoCoder Date: Tue, 12 Aug 2025 18:15:17 +0200 Subject: [PATCH] Add devfile.yaml --- devfile.yaml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 devfile.yaml diff --git a/devfile.yaml b/devfile.yaml new file mode 100644 index 0000000..5922ec3 --- /dev/null +++ b/devfile.yaml @@ -0,0 +1,56 @@ +schemaVersion: 2.2.2 +metadata: + name: vt + displayName: VT + description: VT-Backend + icon: https://github.com/egonelbre/gophers/blob/master/icon/emoji/gopher-confused.png?raw=true + tags: + - Golang + - Fiber + - gorm + projectType: go + language: go + version: 1.0.0 +starterProjects: + - name: vt-backend + git: + checkoutFrom: + remote: origin + revision: main + remotes: + origin: https://git.kocoder.xyz/kocoded/vt +components: + - name: golang + container: + image: git.kocoder.xyz/diplomarbeit-absolventenverein/workspaces/universal:ubi9 + args: ["tail", "-f", "/dev/null"] + mountSources: true + endpoints: + - name: http-go + protocol: http + targetPort: 3000 +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