forked from vieter-v/vieter
chore: please the linter
This commit is contained in:
parent
5cbfc0ebcb
commit
03f2240ff6
6 changed files with 7 additions and 6 deletions
|
|
@ -103,6 +103,7 @@ pub:
|
|||
logs string
|
||||
}
|
||||
|
||||
// build_target builds the given target. Internally it calls `build_config`.
|
||||
pub fn build_target(address string, api_key string, base_image_id string, target &Target) !BuildResult {
|
||||
config := BuildConfig{
|
||||
target_id: target.id
|
||||
|
|
@ -116,7 +117,7 @@ pub fn build_target(address string, api_key string, base_image_id string, target
|
|||
return build_config(address, api_key, config)
|
||||
}
|
||||
|
||||
// build_target builds, packages & publishes a given Arch package based on the
|
||||
// build_config builds, packages & publishes a given Arch package based on the
|
||||
// provided target. The base image ID should be of an image previously created
|
||||
// by create_build_image. It returns the logs of the container.
|
||||
pub fn build_config(address string, api_key string, config BuildConfig) !BuildResult {
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ mut:
|
|||
invalidated map[int]time.Time
|
||||
}
|
||||
|
||||
// new_job_queue initializes a new job queue
|
||||
pub fn new_job_queue(default_schedule CronExpression, default_base_image string) BuildJobQueue {
|
||||
return BuildJobQueue{
|
||||
default_schedule: default_schedule
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
module build
|
||||
|
||||
import models
|
||||
|
||||
fn test_create_build_script_git_branch() {
|
||||
config := BuildConfig{
|
||||
target_id: 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue