Files
HomeServerCTs/.vscode/tasks.json
Bram Prieshof d47e3d8ebe Deprectated GetExternalResources script
Functionality is now added to init sh off CT that need external resources
2022-07-02 21:28:29 +02:00

45 lines
1.5 KiB
JSON

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "BuildIMG",
"type": "shell",
"command": " export XZ_DEFAULTS='-T 0'; ./distrobuilder build-lxc CT-Build/${input:Distro}.yaml -o image.variant=${input:BuildVariant} ;rm -f meta.tar.xz; mv ./rootfs.tar.xz /build/template/cache/${input:Distro}-${input:BuildVariant}.tar.xz",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "SetupImgBuilder",
"type": "shell",
"command": "git clone https://github.com/lxc/distrobuilder distrobuilderSRC; cd distrobuilderSRC; gofmt -s -w .; go build -o ../ -v ./...; cd ../; rm -rf distrobuilderSRC",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
],
"inputs": [
{
"id": "BuildVariant",
"description": "Wich Variant shoud be build",
"type": "promptString"
},
{
"type": "pickString",
"id": "Distro",
"description": "Wich Distro shoud be used",
"options": [
"Debian",
"Alpine",
"OtherTesting"
],
"default": "Debian"
},
]
}