Add devfile.yaml
This commit is contained in:
56
devfile.yaml
Normal file
56
devfile.yaml
Normal file
@ -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
|
||||||
Reference in New Issue
Block a user