agent: some better logging

This commit is contained in:
Jef Roosens 2022-12-14 16:33:50 +01:00
parent d7a04c6ebf
commit 51df1874f5
Signed by untrusted user: Jef Roosens
GPG key ID: B75D4F293C7052DB
2 changed files with 9 additions and 6 deletions

View file

@ -27,6 +27,11 @@ pub:
force bool
}
// str return a single-line string representation of a build log
pub fn (c BuildConfig) str() string {
return '{ target: $c.target_id, kind: $c.kind, url: $c.url, branch: $c.branch, repo: $c.repo, base_image: $c.base_image, force: $c.force }'
}
// create_build_image creates a builder image given some base image which can
// then be used to build & package Arch images. It mostly just updates the
// system, install some necessary packages & creates a non-root user to run