new file: .vscode/tasks.yaml

This commit is contained in:
Márcio Fernandes
2026-07-17 13:59:58 +01:00
parent 901d7cbfe1
commit dcb8208120
+26
View File
@@ -0,0 +1,26 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Bash - Selected file",
"type": "shell",
"command": "bash",
"args": [
"${file}"
],
{
"label": "Kustomize - Build - Selected File",
"type": "shell",
"command": "bash -c '[[ \"$(basename ${file})\" == \"kustomization.yaml\" ]] && kubectl kustomize ${fileDirname} || echo \"❌ invalid kustomization.yaml\"'",
"problemMatcher": [],
"group": "build"
},
{
"label": "Kustomize - Build & Deply - Selected File",
"type": "shell",
"command": "bash -c '[[ \"$(basename ${file})\" == \"kustomization.yaml\" ]] && kubectl kustomize ${fileDirname} | kubectl apply -f - || echo \"❌ invalid kustomization.yaml\"'",
"problemMatcher": [],
"group": "build"
}
]
}