128 lines
3.4 KiB
JSON
128 lines
3.4 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): 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): start.sh",
|
|
"type": "shell",
|
|
"command": ".bin/gitops update start.sh",
|
|
"group": "build",
|
|
"problemMatcher": [],
|
|
"detail": "Copy start.sh to $HOME/"
|
|
},
|
|
{
|
|
"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": "GitOps: Remove workspace image",
|
|
"type": "shell",
|
|
"command": ".bin/gitops rmi ${input:images}",
|
|
"problemMatcher": [],
|
|
"detail": "run podman rmi $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"
|
|
},
|
|
{
|
|
"id": "images",
|
|
"type": "promptString",
|
|
"description": "space separated list of images",
|
|
"default": ""
|
|
}
|
|
]
|
|
}
|