101 lines
3.0 KiB
JSON
101 lines
3.0 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "build",
|
|
"command": "dotnet",
|
|
"type": "process",
|
|
"args": [
|
|
"build",
|
|
"${workspaceFolder}/back/Api.sln",
|
|
"/property:GenerateFullPaths=true",
|
|
"/consoleloggerparameters:NoSummary;ForceNoAlign"
|
|
],
|
|
"problemMatcher": "$msCompile"
|
|
},
|
|
{
|
|
"label": "publish",
|
|
"command": "dotnet",
|
|
"type": "process",
|
|
"args": [
|
|
"publish",
|
|
"${workspaceFolder}/back/Api.sln",
|
|
"/property:GenerateFullPaths=true",
|
|
"/consoleloggerparameters:NoSummary;ForceNoAlign"
|
|
],
|
|
"problemMatcher": "$msCompile"
|
|
},
|
|
{
|
|
"label": "watch",
|
|
"command": "dotnet",
|
|
"type": "process",
|
|
"args": [
|
|
"watch",
|
|
"run",
|
|
"--project",
|
|
"${workspaceFolder}/back/Api.sln"
|
|
],
|
|
"problemMatcher": "$msCompile"
|
|
},
|
|
{
|
|
"type": "docker-build",
|
|
"label": "docker-build: debug",
|
|
"dependsOn": [
|
|
"build"
|
|
],
|
|
"dockerBuild": {
|
|
"tag": "dombudg:dev",
|
|
"target": "base",
|
|
"dockerfile": "${workspaceFolder}/back/Controllers/Dockerfile",
|
|
"context": "${workspaceFolder}",
|
|
"pull": true
|
|
},
|
|
"netCore": {
|
|
"appProject": "${workspaceFolder}/back/Controllers/Controllers.csproj"
|
|
}
|
|
},
|
|
{
|
|
"type": "docker-build",
|
|
"label": "docker-build: release",
|
|
"dependsOn": [
|
|
"build"
|
|
],
|
|
"dockerBuild": {
|
|
"tag": "dombudg:latest",
|
|
"dockerfile": "${workspaceFolder}/back/Controllers/Dockerfile",
|
|
"context": "${workspaceFolder}",
|
|
"platform": {
|
|
"os": "linux",
|
|
"architecture": "amd64"
|
|
},
|
|
"pull": true
|
|
},
|
|
"netCore": {
|
|
"appProject": "${workspaceFolder}/back/Controllers/Controllers.csproj"
|
|
}
|
|
},
|
|
{
|
|
"type": "docker-run",
|
|
"label": "docker-run: debug",
|
|
"dependsOn": [
|
|
"docker-build: debug"
|
|
],
|
|
"dockerRun": {},
|
|
"netCore": {
|
|
"appProject": "${workspaceFolder}/back/Controllers/Controllers.csproj",
|
|
"enableDebugging": true
|
|
}
|
|
},
|
|
{
|
|
"type": "docker-run",
|
|
"label": "docker-run: release",
|
|
"dependsOn": [
|
|
"docker-build: release"
|
|
],
|
|
"dockerRun": {},
|
|
"netCore": {
|
|
"appProject": "${workspaceFolder}/back/Controllers/Controllers.csproj"
|
|
}
|
|
}
|
|
]
|
|
} |