Files
LXCMinimalCTs/.vscode/tasks.json
Bram Prieshof 95ed59561b Added Fedora, fixed cache script and did some cleanup
* Added Alpine 3.21 to the jenkinsfile
* Added Debian Trixe(13) to the jenkinsfile
* Fixed broken cache script Alpine edge builds
* Added Fedora (41) distro
* Cleaned-up Debian.yaml
2025-01-07 00:00:15 +01:00

47 lines
1.7 KiB
JSON

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
// When ran in a Proxmox CT, expose a folder mountpoint and symlink to it MOUNTPOINT/build/template/cache and tell Proxmox this use this folder for LXC images
"label": "BuildIMG",
"type": "shell",
"command": " export XZ_DEFAULTS='-T 0'; sudo ./distrobuilder build-lxc CT-Build/${input:Distro}.yaml -o image.release=${input:version} ;sudo chown $SUDO_USER:$SUDO_USER -R *.tar.xz ;rm -f meta.tar.xz; mv -f rootfs.tar.xz bin/${input:Distro}-${input:version}.tar.xz",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "SetupImgBuilder",
"type": "shell",
"command": "mkdir bin;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": "version",
"description": "Wich version shoud be build",
"type": "promptString"
},
{
"type": "pickString",
"id": "Distro",
"description": "Wich Distro shoud be used",
"options": [
"Debian",
"Alpine",
"Fedora"
],
"default": "Debian"
},
]
}