Files
vt/devfile.yaml

56 lines
1.5 KiB
YAML

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
exposure: public
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