General: Fixed Distrobuilder build script

This commit is contained in:
2026-07-22 17:51:00 +02:00
parent dd6bc4f7b0
commit 746e029a02
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
{ {
"label": "SetupImgBuilder", "label": "SetupImgBuilder",
"type": "shell", "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", "command": "export GOFLAGS=-tags=containers_image_storage_stub,containers_image_docker_daemon_stub,containers_image_openpgp; mkdir bin;git clone https://github.com/lxc/distrobuilder distrobuilderSRC; cd distrobuilderSRC; gofmt -s -w .; go build -o ../ -v ./...; cd ../; rm -rf distrobuilderSRC",
"problemMatcher": [], "problemMatcher": [],
"group": { "group": {
"kind": "build", "kind": "build",
+1
View File
@@ -37,6 +37,7 @@ pipeline {
then then
sed -i '/mirrorlist=/c\baseurl=http://192.168.200.20/centos/\$releasever/BaseOS/x86_64/os/' $WORKSPACE/sources/centos-http.go sed -i '/mirrorlist=/c\baseurl=http://192.168.200.20/centos/\$releasever/BaseOS/x86_64/os/' $WORKSPACE/sources/centos-http.go
fi fi
export GOFLAGS=-tags=containers_image_storage_stub,containers_image_docker_daemon_stub,containers_image_openpgp
gofmt -s -w . gofmt -s -w .
go build -o build -v ./... go build -o build -v ./...
go clean go clean