system-praktyk-api/.vscode/tasks.json

66 lines
1.6 KiB
JSON

{
"version": "2.0.0",
"tasks": [
{
"label": "build: api",
"type": "docker-build",
"dockerBuild": {
"dockerfile": "src/InternshipSystem.Api/Dockerfile",
"tag": "internship.api",
"context": "src"
},
"problemMatcher": [],
},
{
"label": "down: api",
"type": "shell",
"command": "docker-compose",
"args": [
"-f",
".docker/docker-compose.yaml",
"down",
"--volumes"
]
},
{
"label": "up: api",
"type": "shell",
"command": "docker-compose",
"args": [
"-f",
".docker/docker-compose.yaml",
"up",
"--remove-orphans"
],
"dependsOn": [
"down: api",
"build: api"
],
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"label": "restore",
"type": "shell",
"command": "dotnet",
"args": [
"restore"
],
"problemMatcher": []
},
{
"label": "publish",
"command": "dotnet",
"args": [
"publish",
"--output",
"./obj/docker/publish",
"--runtime",
"linux-x64"
]
}
]
}