131 lines
3.6 KiB
JSON
131 lines
3.6 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "GitOps(Build): base image",
|
|
"type": "shell",
|
|
"command": ".bin/gitops build base",
|
|
"group": "build",
|
|
"problemMatcher": [],
|
|
"detail": "build base image using buildah"
|
|
},
|
|
{
|
|
"label": "GitOps(Build): workspace image",
|
|
"type": "shell",
|
|
"command": ".bin/gitops build workspace",
|
|
"group": "build",
|
|
"problemMatcher": [],
|
|
"detail": "build podman image using buildah"
|
|
},
|
|
{
|
|
"label": "GitOps(Build): all images",
|
|
"type": "shell",
|
|
"command": ".bin/gitops build all",
|
|
"group": "build",
|
|
"problemMatcher": [],
|
|
"detail": "build podman image using buildah"
|
|
},
|
|
{
|
|
"label": "GitOps: Clean dangling images",
|
|
"type": "shell",
|
|
"command": ".bin/gitops clean",
|
|
"problemMatcher": [],
|
|
"detail": "Clean podman images"
|
|
},
|
|
{
|
|
"label": "GitOps(Update): Containerfile",
|
|
"type": "shell",
|
|
"command": ".bin/gitops update containerfile",
|
|
"group": "build",
|
|
"problemMatcher": [],
|
|
"detail": "Copy Containerfile to $HOME/"
|
|
},
|
|
{
|
|
"label": "GitOps(Update): ssh_router.sh",
|
|
"type": "shell",
|
|
"command": ".bin/gitops update ssh_router",
|
|
"group": "build",
|
|
"problemMatcher": [],
|
|
"detail": "Copy ssh_router.sh to $HOME/.local/bin/"
|
|
},
|
|
{
|
|
"label": "GitOps(Update): gitops_router.sh",
|
|
"type": "shell",
|
|
"command": ".bin/gitops update gitops_router",
|
|
"group": "build",
|
|
"problemMatcher": [],
|
|
"detail": "Copy gitops_router.sh to $HOME/.local/bin"
|
|
},
|
|
{
|
|
"label": "GitOps(Update): home.tar.gz",
|
|
"type": "shell",
|
|
"command": ".bin/gitops update home_tar",
|
|
"group": "build",
|
|
"problemMatcher": [],
|
|
"detail": "Copy home.tar.gz to $HOME/"
|
|
},
|
|
{
|
|
"label": "GitOps(Update): gitconfig.template",
|
|
"type": "shell",
|
|
"command": ".bin/gitops update gitconfig",
|
|
"group": "build",
|
|
"problemMatcher": [],
|
|
"detail": "Copy gitconfig.template to $HOME/"
|
|
},
|
|
{
|
|
"label": "GitOps(Update): validate_command_access.sh",
|
|
"type": "shell",
|
|
"command": ".bin/gitops update validate_command",
|
|
"group": "build",
|
|
"problemMatcher": [],
|
|
"detail": "Copy validate_command_access.sh to $HOME/.local/bin"
|
|
},
|
|
{
|
|
"label": "Create home tarball",
|
|
"type": "shell",
|
|
"command": "${workspaceFolder}/.bin/create-home-tarball.sh",
|
|
"group": "build",
|
|
"problemMatcher": [],
|
|
"detail": "create home.tar.gz from .config .local .ssh start.sh"
|
|
},
|
|
{
|
|
"label": "Test: start tmux session",
|
|
"type": "shell",
|
|
"command": "${workspaceFolder}/.bin/test-tmux.sh",
|
|
"group": "test",
|
|
"problemMatcher": [],
|
|
"detail": "run tmux with project room as home"
|
|
},
|
|
{
|
|
"label": "GitOps: Show image status",
|
|
"type": "shell",
|
|
"command": ".bin/gitops status",
|
|
"problemMatcher": [],
|
|
"detail": "run podman images on remote"
|
|
},
|
|
{
|
|
"label": "GitOps: Remove workspace container",
|
|
"type": "shell",
|
|
"command": ".bin/gitops remove ${input:container} -f",
|
|
"problemMatcher": [],
|
|
"detail": "run podman rm $args on remote"
|
|
},
|
|
{
|
|
"label": "Cleanup worktree",
|
|
"type": "shell",
|
|
"command": "git clean -Xfd",
|
|
"problemMatcher": [],
|
|
"detail": "delete all untracked files listed in .gitignore"
|
|
}
|
|
],
|
|
"inputs": [
|
|
{
|
|
"id": "container",
|
|
"type": "pickString",
|
|
"description": "Pick a container",
|
|
"options": ["pallav", "palak", "param", "darshan"],
|
|
"default": "pallav"
|
|
}
|
|
]
|
|
}
|