60 lines
1.3 KiB
JSON
60 lines
1.3 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"inputs": [
|
|
{
|
|
"id": "host",
|
|
"type": "pickString",
|
|
"description": "select host",
|
|
"options": [
|
|
"chimera",
|
|
"chimera-deepstate",
|
|
"chimera-gluten",
|
|
"chimera-minion-01"
|
|
]
|
|
}
|
|
],
|
|
"tasks": [
|
|
{
|
|
"label": "Run current file with Bash",
|
|
"type": "shell",
|
|
"command": "bash",
|
|
"args": [
|
|
"${file}"
|
|
],
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"presentation": {
|
|
"echo": true,
|
|
"reveal": "always",
|
|
"focus": false,
|
|
"panel": "shared",
|
|
"showReuseMessage": true,
|
|
"clear": false
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Kustomize - Apply Selected",
|
|
"type": "shell",
|
|
"command": "kubectl apply -k ${fileDirname}",
|
|
"problemMatcher": [],
|
|
"group": "build"
|
|
},
|
|
{
|
|
"label": "ssh: Connect to Node",
|
|
"type": "shell",
|
|
"command": "ssh mf@${input:host}",
|
|
"problemMatcher": [],
|
|
"group": "build"
|
|
},
|
|
{
|
|
"label": "Argo Submmit --log",
|
|
"type": "shell",
|
|
"command": "argo submit ${file} -n $(yq 'select(.kind == \"Workflow\") | .metadata.namespace' ${file}) --log",
|
|
"problemMatcher": [],
|
|
"group": "none"
|
|
}
|
|
]
|
|
} |