2025-04-25 07:11:54 +01:00
|
|
|
{
|
|
|
|
"version": "2.0.0",
|
|
|
|
"tasks": [
|
|
|
|
{
|
2025-05-17 08:18:11 +00:00
|
|
|
"label": "GitOps(Build): base image",
|
2025-04-25 07:11:54 +01:00
|
|
|
"type": "shell",
|
2025-05-17 08:18:11 +00:00
|
|
|
"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",
|
2025-04-25 07:11:54 +01:00
|
|
|
"group": "build",
|
|
|
|
"problemMatcher": [],
|
|
|
|
"detail": "build podman image using buildah"
|
|
|
|
},
|
|
|
|
{
|
2025-05-17 15:16:11 +00:00
|
|
|
"label": "GitOps(Build): all images",
|
2025-04-25 07:11:54 +01:00
|
|
|
"type": "shell",
|
2025-05-17 15:16:11 +00:00
|
|
|
"command": ".bin/gitops build all",
|
|
|
|
"group": "build",
|
2025-04-25 07:11:54 +01:00
|
|
|
"problemMatcher": [],
|
2025-05-17 15:16:11 +00:00
|
|
|
"detail": "build podman image using buildah"
|
2025-04-25 07:11:54 +01:00
|
|
|
},
|
|
|
|
{
|
2025-05-17 15:16:11 +00:00
|
|
|
"label": "GitOps: Clean dangling images",
|
2025-05-17 08:18:11 +00:00
|
|
|
"type": "shell",
|
2025-05-17 15:16:11 +00:00
|
|
|
"command": ".bin/gitops clean",
|
2025-05-17 08:18:11 +00:00
|
|
|
"problemMatcher": [],
|
2025-05-17 15:16:11 +00:00
|
|
|
"detail": "Clean podman images"
|
2025-05-17 08:18:11 +00:00
|
|
|
},
|
|
|
|
{
|
2025-05-17 15:16:11 +00:00
|
|
|
"label": "GitOps(Update): Containerfile",
|
2025-05-17 08:18:11 +00:00
|
|
|
"type": "shell",
|
2025-05-17 15:16:11 +00:00
|
|
|
"command": ".bin/gitops update containerfile",
|
2025-05-17 08:18:11 +00:00
|
|
|
"group": "build",
|
|
|
|
"problemMatcher": [],
|
2025-05-17 15:16:11 +00:00
|
|
|
"detail": "Copy Containerfile to $HOME/"
|
2025-05-17 08:18:11 +00:00
|
|
|
},
|
2025-05-15 05:39:25 +01:00
|
|
|
{
|
2025-05-17 08:18:11 +00:00
|
|
|
"label": "GitOps(Update): home.tar.gz",
|
2025-05-15 05:39:25 +01:00
|
|
|
"type": "shell",
|
2025-05-17 08:18:11 +00:00
|
|
|
"command": ".bin/gitops update home_tar",
|
|
|
|
"group": "build",
|
2025-05-15 05:39:25 +01:00
|
|
|
"problemMatcher": [],
|
2025-05-17 15:16:11 +00:00
|
|
|
"detail": "Copy home.tar.gz to $HOME/"
|
2025-05-16 09:30:05 +01:00
|
|
|
},
|
2025-05-17 09:02:58 +00:00
|
|
|
{
|
|
|
|
"label": "GitOps(Update): gitconfig.template",
|
|
|
|
"type": "shell",
|
|
|
|
"command": ".bin/gitops update gitconfig",
|
|
|
|
"group": "build",
|
|
|
|
"problemMatcher": [],
|
2025-05-17 15:16:11 +00:00
|
|
|
"detail": "Copy gitconfig.template to $HOME/"
|
|
|
|
},
|
2025-05-23 09:50:48 +00:00
|
|
|
{
|
|
|
|
"label": "GitOps(Update): start.sh",
|
|
|
|
"type": "shell",
|
|
|
|
"command": ".bin/gitops update start.sh",
|
|
|
|
"group": "build",
|
|
|
|
"problemMatcher": [],
|
|
|
|
"detail": "Copy start.sh to $HOME/"
|
|
|
|
},
|
2025-05-16 09:30:05 +01:00
|
|
|
{
|
|
|
|
"label": "Create home tarball",
|
|
|
|
"type": "shell",
|
2025-05-16 10:02:00 +01:00
|
|
|
"command": "${workspaceFolder}/.bin/create-home-tarball.sh",
|
2025-05-17 08:18:11 +00:00
|
|
|
"group": "build",
|
2025-05-16 09:30:05 +01:00
|
|
|
"problemMatcher": [],
|
|
|
|
"detail": "create home.tar.gz from .config .local .ssh start.sh"
|
2025-05-16 10:46:52 +01:00
|
|
|
},
|
|
|
|
{
|
2025-05-17 08:18:11 +00:00
|
|
|
"label": "Test: start tmux session",
|
2025-05-16 10:46:52 +01:00
|
|
|
"type": "shell",
|
|
|
|
"command": "${workspaceFolder}/.bin/test-tmux.sh",
|
2025-05-17 08:18:11 +00:00
|
|
|
"group": "test",
|
2025-05-16 10:46:52 +01:00
|
|
|
"problemMatcher": [],
|
|
|
|
"detail": "run tmux with project room as home"
|
2025-05-16 13:08:32 +01:00
|
|
|
},
|
|
|
|
{
|
2025-05-17 08:18:11 +00:00
|
|
|
"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"
|
|
|
|
},
|
2025-05-17 18:41:11 +00:00
|
|
|
{
|
|
|
|
"label": "GitOps: Remove workspace image",
|
|
|
|
"type": "shell",
|
2025-05-17 19:33:18 +00:00
|
|
|
"command": ".bin/gitops rmi ${input:images}",
|
2025-05-17 18:41:11 +00:00
|
|
|
"problemMatcher": [],
|
|
|
|
"detail": "run podman rmi $args on remote"
|
|
|
|
},
|
2025-05-17 08:18:11 +00:00
|
|
|
{
|
|
|
|
"label": "Cleanup worktree",
|
2025-05-16 13:08:32 +01:00
|
|
|
"type": "shell",
|
|
|
|
"command": "git clean -Xfd",
|
|
|
|
"problemMatcher": [],
|
|
|
|
"detail": "delete all untracked files listed in .gitignore"
|
2025-04-25 07:11:54 +01:00
|
|
|
}
|
|
|
|
],
|
2025-05-17 08:18:11 +00:00
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"id": "container",
|
|
|
|
"type": "pickString",
|
|
|
|
"description": "Pick a container",
|
|
|
|
"options": ["pallav", "palak", "param", "darshan"],
|
|
|
|
"default": "pallav"
|
2025-05-17 18:41:11 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "images",
|
|
|
|
"type": "promptString",
|
|
|
|
"description": "space separated list of images",
|
|
|
|
"default": ""
|
2025-05-17 08:18:11 +00:00
|
|
|
}
|
|
|
|
]
|
2025-04-25 07:11:54 +01:00
|
|
|
}
|