feat: added ability to specify kind of target

This commit is contained in:
Jef Roosens 2022-06-17 13:45:21 +02:00
parent 10ad8297fb
commit bb5643bb03
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
6 changed files with 58 additions and 25 deletions

View file

@ -15,10 +15,13 @@ pub fn (gra &TargetArch) str() string {
pub struct Target {
pub mut:
id int [primary; sql: serial]
// URL of the Git repository
kind string [nonull]
// If kind is git: URL of the Git repository
// If kind is url: URL to PKGBUILD file
url string [nonull]
// Branch of the Git repository to use
branch string [nonull]
// Branch of the Git repository to use; only applicable when kind is git.
// If not provided, the repository is cloned with the default branch.
branch string
// Which repo the builder should publish packages to
repo string [nonull]
// Cron schedule describing how frequently to build the repo.