{ // 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 ; bash Scripts/GetExternalResources.sh", "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" }, ] }