{ // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ { "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 & Deploy - Selected File", "type": "shell", "command": "bash -c '[[ \"$(basename ${file})\" == \"kustomization.yaml\" ]] && kubectl kustomize ${fileDirname} | kubectl apply -f - || echo \"❌ invalid kustomization.yaml\"'", "problemMatcher": [], "group": "build" }, { "label": "Apply App", "type": "shell", "command": "./ops-scripts/apply-app.sh", "problemMatcher": [] } ] }